Skip to content

[svm][SYCL] In-order queue and native commands #101

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rafbiels
Copy link
Contributor

Improve SYCL performance on CUDA and HIP backends with the two changes below. There is no functional change for Intel backends.

1. Add CMake option to use in-order queue

Add the queue properties in_order and, if available, discard_events. The addition is steered by a CMake build option IN_ORDER_QUEUE. Set the default value to ON for NVIDIA and AMD backends and keep as OFF for other backends. The in-order queue corresponds more directly to how the CUDA/HIP variants of the benchmark are written since they use the default stream.

2. Use extensions to submit native commands when available

Use the wrapper functions from <top-dir>/infrastructure/SYCL.h (added in #95) to call either host_task or native command extensions when available. This improves performance with CUDA and HIP backends.

Delete local copies of the SYCL.(h|cpp) files which were not used in the benchmark and clashed with the one used in this PR.

rafbiels added 2 commits May 21, 2025 17:10
Add the queue properties in_order and, if available, discard_events.
The addition is steered by a CMake build option IN_ORDER_QUEUE.
Set the default value to ON for NVIDIA and AMD backends and keep
as OFF for other backends.
Use the wrapper functions from <top-dir>/infrastructure/SYCL.h
to call either host_task or native command extensions when available.
This improves performance with CUDA and HIP backends.

Delete local copies of the SYCL.(h|cpp) files which were not used
in the benchmark.
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.

1 participant