Skip to content

[SYCL] Fix bool parameters in CUDA and ROCm plugins #4059

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
Jul 12, 2021

Conversation

npmiller
Copy link
Contributor

@npmiller npmiller commented Jul 6, 2021

Device parameters are pi_bool, which is uint32_t, not bool.

So using bool here is incorrect because it will only set one byte of
the expected 4 bytes output. If the output is initialized to 0 this
will work fine, but if it's not this results in undefined behaviour.

Device parameters are `pi_bool`, which is `uint32_t`, not `bool`.

So using `bool` here is incorrect because it will only set one byte of
the expected 4 bytes output. If the output is initialized to 0 this
will work fine, but if it's not this results in undefined behaviour.
@npmiller npmiller requested review from smaslov-intel and a team as code owners July 6, 2021 14:39
@bader
Copy link
Contributor

bader commented Jul 9, 2021

@smaslov-intel, @intel/llvm-reviewers-cuda, ping.

@vladimirlaz vladimirlaz merged commit 764b6ff into intel:sycl Jul 12, 2021
@bader bader added the cuda CUDA back-end label Jul 26, 2021
@bader bader added the hip Issues related to execution on HIP backend. label Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuda CUDA back-end hip Issues related to execution on HIP backend.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants