-
Notifications
You must be signed in to change notification settings - Fork 759
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
[UR][L0] Fix runtime library linkage failure #17347
base: sycl
Are you sure you want to change the base?
Conversation
@@ -63,6 +63,22 @@ if (NOT DEFINED LEVEL_ZERO_LIBRARY OR NOT DEFINED LEVEL_ZERO_INCLUDE_DIR) | |||
FetchContent_MakeAvailable(level-zero-loader) | |||
FetchContent_GetProperties(level-zero-loader) | |||
|
|||
if(WIN32 AND level-zero-loader_SOURCE_DIR) | |||
# apply runtime library patch |
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.
this probably should be under if(MSVC)
. Also, instead of patching the cmakes, isn't it possible to replace the CXX_FLAGS variables?
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.
Done, works locally
55777ab
to
00e27fe
Compare
Fix failure of mismatching runtime library types when linking ur_adapter_level_zero.dll with ze_loader.lib.
00e27fe
to
06b0c41
Compare
Failure in SYCL Pre Commit on Linux job not related with changes from this PR which affect Windows only. |
Fix failure of mismatching runtime library types when linking ur_adapter_level_zero.dll with ze_loader.lib.