-
Notifications
You must be signed in to change notification settings - Fork 790
[SYCL] Diagnose invalid data types in image accessor #1029
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] Diagnose invalid data types in image accessor #1029
Conversation
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.
Please add [SYCL]
to the commit message
sycl/include/CL/sycl/accessor.hpp
Outdated
"The data type of an image accessor must be only cl_int4, " | ||
"cl_uint4, cl_float4 or cl_half4 from SYCL namespace"); |
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.
Looks like you have some spare spaces here in front of string.
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.
Thanks for suggestion, I applied clang-format here.
The data type for the accessor of image should be half4, float4, uint4 or int4 from SYCL namespace. This patch report error, if data type is invalid. Signed-off-by: Ilya Mashkov [email protected]
The data type for the accessor of image should be half4, float4, uint4 or int4. This patch report error, if data type is invalid.
Signed-off-by: Ilya Mashkov [email protected]