Skip to content

[SYCL][UR][L0] Fix casting in UR for boolean #9654

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
May 31, 2023

Conversation

jandres742
Copy link
Contributor

@jandres742 jandres742 commented May 30, 2023

pi_bool is uint32_t and ur_bool_t is uint8_t, so to make sure correct functionality is maintained, use uint32_t as replacement for pi_bool, instead of ur_bool_t.

@smaslov-intel
Copy link
Contributor

smaslov-intel commented May 30, 2023

This seems to be similar to #9561 and caused by adapter voluntarily interpreting how bool is returned.

ur_bool_t is uint8_t

I think ur_bool_t should either be removed, or redefined as uint32_t

@jandres742 jandres742 temporarily deployed to aws May 30, 2023 18:36 — with GitHub Actions Inactive
Copy link
Contributor

@smaslov-intel smaslov-intel left a comment

Choose a reason for hiding this comment

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

Please follow up with update of ur_bool_t

pi_bool is uint32_t and ur_bool_t is uint8_t, so to make sure
correct functionality is maintained, use uint32_t as replacement
for pi_bool, instead of ur_bool_t.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
@jandres742
Copy link
Contributor Author

pi_bool

@smaslov-intel : Please see here oneapi-src/unified-runtime#556

@jandres742 jandres742 temporarily deployed to aws May 30, 2023 20:50 — with GitHub Actions Inactive
@jandres742 jandres742 marked this pull request as ready for review May 30, 2023 22:11
@jandres742 jandres742 requested a review from a team as a code owner May 30, 2023 22:11
@jandres742 jandres742 temporarily deployed to aws May 30, 2023 23:09 — with GitHub Actions Inactive
@jandres742
Copy link
Contributor Author

@intel/llvm-gatekeepers : could we merge this?

@againull againull merged commit 566f9ce into intel:sycl May 31, 2023
veselypeta pushed a commit to veselypeta/llvm that referenced this pull request Sep 21, 2023
pi_bool is uint32_t and ur_bool_t is uint8_t, so to make sure correct
functionality is maintained, use uint32_t as replacement for pi_bool,
instead of ur_bool_t.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
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