Skip to content

[UR] For non-standalone builds, use built DPCXX/Extractor #18062

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
Apr 24, 2025

Conversation

RossBrunton
Copy link
Contributor

If we are not a standalone build (that is, we are built as part of
intel/llvm) and UR_DPCXX is not specified as part of the cmake
options, we use the clang built by intel/llvm to generate device
binaries.

Likewise, if no UR_DEVICE_CODE_EXTRACTOR is specified and we are
not standalone, the clang-offload-extractor from intel/llvm is used.

This change should not affect CI, but does mean that the UR testing
targets can be built in an intel/llvm local build.

If we are not a standalone build (that is, we are built as part of
intel/llvm) and `UR_DPCXX` is not specified as part of the cmake
options, we use the `clang` built by `intel/llvm` to generate device
binaries.

Likewise, if no `UR_DEVICE_CODE_EXTRACTOR` is specified and we are
not standalone, the `clang-offload-extractor` from intel/llvm is used.

This change should not affect CI, but does mean that the UR testing
targets can be built in an intel/llvm local build.
@RossBrunton
Copy link
Contributor Author

@intel/llvm-reviewers-cuda @intel/unified-runtime-reviewers-level-zero

Small change for these backends; I've added UR_FOUND_DPCXX which contains the final path of the found dpc++ binary (which now may be either specified by the user or by the llvm build rather than just the former).

@kbenzie kbenzie removed the request for review from Seanst98 April 23, 2025 12:41
@martygrant martygrant merged commit f5d4c1e into intel:sycl Apr 24, 2025
39 of 40 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.

4 participants