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
Missing error for wrong slice_pitch in clEnqueueReadImage #624
Comments
Our implementation does return However, the Intel GPU OpenCL implementation (which happens to be easy to run on my laptop) returns |
Yes, we don't seem to be checking for this condition in our CPU or GPU implementation. I agree that |
I found the root cause why the test failed for me. It gets the slice pitch from an earlier |
The OpenCL spec lists the following requirement for the function
clEnqueueReadImage
:"slice_pitch in
clEnqueueReadImage
and input_slice_pitch inclEnqueueWriteImage
is the size in bytes of the 2D slice of the 3D region of a 3D image or each image of a 1D or 2D image array being read or written respectively. This must be 0 if image is a 1D or 2D image. [...]"But slice_pitch is not mentioned in the list of returned errors for these functions. What should a CL implementation do if slice_pitch is not 0 for a 1D or 2D image? Return
CL_INVALID_VALUE
? Or ignore the error and returnCL_SUCCESS
?If CL_INVALID_VALUE is returned, the CTS test
mem_host_flags
fails ...The text was updated successfully, but these errors were encountered: