Skip to content

[SYCL][libclc] Add generic addrspace overloads of vload/vstore builtins #13092

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

frasercrmck
Copy link
Contributor

These definitions and declarations were missing, which would be problematic for a target which supports the generic address space where that address space is uniquely mangled. As with the maths builtins, the NVIDIA target wouldn't see this problem as the 'generic' address space is mangled identically to the 'private' one, so we were serendipitously providing the builtins through these.

I couldn't seem to make SYCL actually generate these builtins, but there is a path from SPIR-V to them (through the OpenCL SPIR-V environment), so providing them is prudent irregardless. In the absence of tests I manually verified that there are now as many 'AS0' overloads of these builtins as there 'AS5'/'AS1'/etc overloads.

These definitions and declarations were missing, which would be
problematic for a target which supports the generic address space where
that address space is uniquely mangled. As with the maths builtins, the
NVIDIA target wouldn't see this problem as the 'generic' address space
is mangled identically to the 'private' one, so we were serendipitously
providing the builtins through these.

I couldn't seem to make SYCL actually generate these builtins, but there
is a path from SPIR-V to them (through the OpenCL SPIR-V environment),
so providing them is prudent irregardless. In the absence of tests I
manually verified that there are now as many 'AS0' overloads of these
builtins as there 'AS5'/'AS1'/etc overloads.
@frasercrmck frasercrmck requested a review from a team as a code owner March 21, 2024 16:59
Copy link
Contributor

@MartinWehking MartinWehking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you. It's also great that you reformatted the code and made sure that the 80 chars max length is kept for instance.

@ldrumm ldrumm merged commit 51ffc04 into intel:sycl Mar 27, 2024
@frasercrmck frasercrmck deleted the libclc-generic-vload-vstore branch March 27, 2024 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants