Skip to content

[SYCL][CUDA] Enable cuda_piEnqueueEventsWaitWithBarrier #3932

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
Jun 20, 2021

Conversation

Alexander-Johnston
Copy link
Contributor

This enables cuda_piEnqueueEventsWaitWithBarrier by moving the implementation of cuda_piEnqueueEventsWait and redirecting cuda_piEnqueueEventsWait to cuda_piEnqueueEventsWaitWithBarrier.

cuda_piEnqueueEventsWait will need refactored at a later time to not use the barrier version. This requires refactoring to the pi_cuda Event class which is beyond the scope of this PR.

Enable cuda_piEnqueueEventsWaitWithBarrier using
cuda_piEnqueueEventsWait implementation and redirect
cuda_piEnqueueEventsWait to cuda_piEnqueueEventsWaitWithBarrier until
it can be implemented properly after multiple streams are supported
properly after an Event class refactor.

Signed-off-by: Alexander Johnston <alexander@codeplay.com>
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.

LGTM

@bader
Copy link
Contributor

bader commented Jun 16, 2021

@tfzhu, there's no space on cuda machine.
Could you take a look, please?

@bader bader added the cuda CUDA back-end label Jun 20, 2021
@bader bader merged commit 2e97848 into intel:sycl Jun 20, 2021
npmiller added a commit to npmiller/llvm-test-suite that referenced this pull request Nov 16, 2021
These are passing with CUDA, as far as I can tell this feature was
implemented as part of intel/llvm#3932.

`enqueue_barrier.cpp` had to be tweaked to accept a triple as that is
required when using the CUDA plugin.

Note that this feature is missing from the hip plugin which is why these
are still unsupported for hip.
vladimirlaz pushed a commit to intel/llvm-test-suite that referenced this pull request Nov 17, 2021
These are passing with CUDA, as far as I can tell this feature was
implemented as part of intel/llvm#3932.

`enqueue_barrier.cpp` had to be tweaked to accept a triple as that is
required when using the CUDA plugin.

Note that this feature is missing from the hip plugin which is why these
are still unsupported for hip.
npmiller added a commit to npmiller/llvm that referenced this pull request Nov 17, 2021
This patch enables piEnqueueEventsWaitWithBarrier for the HIP plugin, it
brings it to the same level as the CUDA plugin, see intel#3932.

This fixes the `llvm-test-suite`, `SYCL/Basic/submit_barrier.cpp`,
`SYCL/Basic/enqueue_barrier.cpp` and `SYCL/Basic/barrier_order.cpp`
tests for the HIP plugin.
bader pushed a commit that referenced this pull request Jan 10, 2022
This patch enables piEnqueueEventsWaitWithBarrier for the HIP plugin, it
brings it to the same level as the CUDA plugin, see #3932.

This fixes the `llvm-test-suite`, `SYCL/Basic/submit_barrier.cpp`,
`SYCL/Basic/enqueue_barrier.cpp` and `SYCL/Basic/barrier_order.cpp`
tests for the HIP plugin.
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
These are passing with CUDA, as far as I can tell this feature was
implemented as part of intel#3932.

`enqueue_barrier.cpp` had to be tweaked to accept a triple as that is
required when using the CUDA plugin.

Note that this feature is missing from the hip plugin which is why these
are still unsupported for hip.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuda CUDA back-end
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants