-
Notifications
You must be signed in to change notification settings - Fork 11k
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
[AMDGPU] Using OpenCL address spaces violates assertion #65069
Labels
Comments
jhuber6
added
clang
Clang issues not falling into any other category
backend:AMDGPU
OpenCL
labels
Aug 29, 2023
@llvm/issue-subscribers-opencl |
@llvm/issue-subscribers-backend-amdgpu |
This was referenced Sep 13, 2023
jhuber6
added a commit
to jhuber6/llvm-project
that referenced
this issue
Sep 13, 2023
Summary: Currently, there is an assertion that prevents us from emitting an AMDGPU global with a non-target specific address space (i.e. numerical attribute). I'm unsure what the original intentions of this assertion were, but we should be able to use OpenCL address spaces when compiling directly to AMDGPU from C++. This is permitted on NVPTX so I'm unsure what this assertion is guarding. The patch simply removes the assertion and adds a test to ensure that these emit the expected address spaces. Fixes llvm#65069
jhuber6
added a commit
that referenced
this issue
Sep 13, 2023
…6205) Summary: Currently, there is an assertion that prevents us from emitting an AMDGPU global with a non-target specific address space (i.e. numerical attribute). I'm unsure what the original intentions of this assertion were, but we should be able to use OpenCL address spaces when compiling directly to AMDGPU from C++. This is permitted on NVPTX so I'm unsure what this assertion is guarding. The patch simply removes the assertion and adds a test to ensure that these emit the expected address spaces. Fixes #65069
ZijunZhaoCCK
pushed a commit
to ZijunZhaoCCK/llvm-project
that referenced
this issue
Sep 19, 2023
…vm#66205) Summary: Currently, there is an assertion that prevents us from emitting an AMDGPU global with a non-target specific address space (i.e. numerical attribute). I'm unsure what the original intentions of this assertion were, but we should be able to use OpenCL address spaces when compiling directly to AMDGPU from C++. This is permitted on NVPTX so I'm unsure what this assertion is guarding. The patch simply removes the assertion and adds a test to ensure that these emit the expected address spaces. Fixes llvm#65069
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code snippet causes an assertion to be hit when compiling for AMDGPU. This works as expected when using the numerical address spaces or when compiling for the NVPTX architecture.
See the compiler explorer link for a reproducer https://godbolt.org/z/x9PWr76qq.
The text was updated successfully, but these errors were encountered: