-
Notifications
You must be signed in to change notification settings - Fork 744
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
[SYCL][CUDA][LIT] Fix base address get and subbuffer LIT test #1913
[SYCL][CUDA][LIT] Fix base address get and subbuffer LIT test #1913
Conversation
446ede1
to
1747afe
Compare
This commit fixes a hardcoded value for base address alignment in the cuda backend. Also a hardcoded value that should be dependant on the base address alignment is fixed in the subbuffer LIT test, which now passes on CUDA. Signed-off-by: Przemek Malon <[email protected]>
1747afe
to
788ac4e
Compare
@fwyzard FYI |
@Ruyk Could you please take a look? |
@@ -1,6 +1,3 @@ | |||
// XFAIL: cuda |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes me happy!
cl::sycl::detail::pi::assertion( | ||
cuDeviceGetAttribute(&mem_base_addr_align, | ||
CU_DEVICE_ATTRIBUTE_TEXTURE_ALIGNMENT, | ||
device->get()) == CUDA_SUCCESS); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Przemek and I discussed offline - the reported value aligns with the hard-coded value before. This alignment is probably required to enable creation of images, e.g., CL_MEM_OBJECT_IMAGE1D_BUFFER
, from sub-buffers.
+1 |
Extension name will be preserved for a while for binary compatibility. Signed-off-by: Sidorov, Dmitry <[email protected]> Original commit: KhronosGroup/SPIRV-LLVM-Translator@68855f6
This commit fixes a hardcoded value for base address alignment
in the CUDA backend. Also a hardcoded value that should be
dependant on the base address alignment is fixed in the subbuffer
LIT test, which now passes on CUDA.
Signed-off-by: Przemek Malon [email protected]