Skip to content

[SYCL] Add "ext_oneapi_offload" backend enum value #18683

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 2 commits into from
Jun 5, 2025

Conversation

RossBrunton
Copy link
Contributor

This adds offload as a backend to the sycl runtime. This means it is
accepted as a value for ONEAPI_DEVICE_SELECTOR and friends, and
prevents an offload device reporting itself as such causing an exception
to be thrown.

Note that the UR offload adapter is still not built as part of the
build. The only way to use this is with a standalone build of
unified-runtime with libur_adapter_offload enabled and in the
LD_LIBRARY_PATH.

@RossBrunton RossBrunton requested review from a team as code owners May 27, 2025 14:26
@RossBrunton RossBrunton requested a review from cperkinsintel May 27, 2025 14:26
@RossBrunton RossBrunton removed the request for review from a team May 28, 2025 10:51
This adds `offload` as a backend to the sycl runtime. This means it is
accepted as a value for `ONEAPI_DEVICE_SELECTOR` and friends, and
prevents an offload device reporting itself as such causing an exception
to be thrown.

Note that the UR offload adapter is still not built as part of the
build. The only way to use this is with a standalone build of
unified-runtime with libur_adapter_offload enabled and in the
`LD_LIBRARY_PATH`.
@RossBrunton
Copy link
Contributor Author

@intel/llvm-reviewers-runtime @callumfare @kbenzie Now this is green, can I get it looked at?

Basically, as part of offload work we want to be able to do ONEAPI_DEVICE_SELECTOR="offload:*" to use the offload adapter. We intend for this to be an undocumented "hidden" selector as the end user is not expected to explicitly use this adapter. Having it available as a dedicated target makes developer and CI workflows a lot easier.

@RossBrunton
Copy link
Contributor Author

@intel/llvm-gatekeepers Please merge.

@kbenzie kbenzie merged commit 546c56c into intel:sycl Jun 5, 2025
24 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