Replies: 1 comment 10 replies
-
So zero-sized buffers result in an error as it was previously the case in SYCL 2020 that zero-sized buffers were not permitted, even if the backend could allow it. However, the SYCL 2020 spec was recently amended to permit zero-sized buffers:
As this is now permitted by the spec I think it's a valid enhancement, and I believe this is a general issue which would apply to all backends, so not just for the CUDA backend. cc @bader |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When the size of a device buffer is zero, the runtime will show assertion error. Could the assertion occur only when the size is negative ?
In CUDA, cudaMalloc() does not return an error when the size is zero.
Porting a CUDA program to SYCL using SYCL buffers is smooth when a buffer size of zero does not cause the assert error.
Beta Was this translation helpful? Give feedback.
All reactions