-
Notifications
You must be signed in to change notification settings - Fork 787
[CMake] Enable UR plugin when building dependant plugins #11214
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
Conversation
Previously, only level_zero was adding unified_runtime, but now cuda, hip, and native_cpu require it as well.
@@ -73,61 +73,69 @@ add_sycl_plugin(unified_runtime | |||
Threads::Threads | |||
UnifiedRuntimeLoader | |||
UnifiedRuntime-Headers | |||
LevelZeroLoader-Headers # we need for #include <ze_api.h> in common.h |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No common.h
in sight, and nothing in sycl/plugins/unified_runtime/
rely on level_zero except the corresponding adapter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Conflicts: sycl/plugins/CMakeLists.txt sycl/plugins/unified_runtime/CMakeLists.txt
Will wait for #11566 to be merged before resolving the conflicts here |
After the CMake changes associated with moving plugins to the external repo, this PR does not seem to be necessary anymore. At least in my tests, DCP++ builds just fine with OpenCL or HIP alone :) |
Useful when building without
level_zero
plugin.