Skip to content

Comments

Fix generation of min/max calls for SYCL#212

Merged
aneshlya merged 1 commit intointel:mainfrom
AlexeySachkov:private/asachkov/fix-min-max-in-sycl
Jul 11, 2025
Merged

Fix generation of min/max calls for SYCL#212
aneshlya merged 1 commit intointel:mainfrom
AlexeySachkov:private/asachkov/fix-min-max-in-sycl

Conversation

@AlexeySachkov
Copy link
Contributor

SYCL 2020 specification does not define min/max overloads accepting bool data type, but yarpgen generates code that calls them. Of course, such code does not compile and to fix this, we do a promotion from bool to char (or signed char, to be precise).

SYCL 2020 specification does not define min/max overloads accepting
`bool` data type, but yarpgen generates code that calls them. Of course,
such code does not compile and to fix this, we do a promotion from
`bool` to `char` (or `signed char`, to be precise).

Signed-off-by: Alexey Sachkov <alexey.sachkov@intel.com>
Copy link
Contributor

@dbabokin dbabokin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aneshlya aneshlya merged commit c3feab4 into intel:main Jul 11, 2025
3 checks passed
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.

3 participants