Skip to content

[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

Merged
merged 1 commit into from
Jan 27, 2020
Merged

[SYCL] Diagnose invalid data types in image accessor #1029

merged 1 commit into from
Jan 27, 2020

Conversation

imashkov
Copy link
Contributor

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]

Copy link
Contributor

@AlexeySachkov AlexeySachkov left a 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

Comment on lines 318 to 319
"The data type of an image accessor must be only cl_int4, "
"cl_uint4, cl_float4 or cl_half4 from SYCL namespace");
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@imashkov imashkov changed the title Report an error for invalid data type in image accessor [SYCL]Report an error for invalid data type in image accessor Jan 24, 2020
@bader bader changed the title [SYCL]Report an error for invalid data type in image accessor [SYCL] Diagnose invalid data types in image accessor Jan 24, 2020
bader
bader previously approved these changes Jan 24, 2020
s-kanaev
s-kanaev previously approved these changes Jan 24, 2020
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]
@imashkov imashkov dismissed stale reviews from s-kanaev and bader via 3cfb2b4 January 24, 2020 14:25
@bader bader merged commit 306624e into intel:sycl Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants