Skip to content
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

Open
wants to merge 1 commit into
base: sycl
Choose a base branch
from

Conversation

PatKamin
Copy link

@PatKamin PatKamin commented Mar 7, 2025

Fix failure of mismatching runtime library types when linking ur_adapter_level_zero.dll with ze_loader.lib.

@@ -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
Copy link
Contributor

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?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, works locally

Fix failure of mismatching runtime library types when linking
ur_adapter_level_zero.dll with ze_loader.lib.
@PatKamin PatKamin marked this pull request as ready for review March 7, 2025 14:21
@PatKamin PatKamin requested a review from a team as a code owner March 7, 2025 14:21
@PatKamin
Copy link
Author

PatKamin commented Mar 7, 2025

Failure in SYCL Pre Commit on Linux job not related with changes from this PR which affect Windows only.

@PatKamin PatKamin requested a review from pbalcer March 7, 2025 14:44
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.

2 participants