Skip to content

[SYCL] Copy L0 loader to build dir if path to loader is provided #1884

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 15, 2020

Conversation

againull
Copy link
Contributor

Signed-off-by: Artur Gainullin [email protected]

@againull againull requested review from smaslov-intel and a team as code owners June 12, 2020 21:43
file(GLOB L0_LIBRARY_SRC "${L0_LIBRARY}*")
file(COPY ${L0_LIBRARY_SRC} DESTINATION ${LLVM_LIBRARY_OUTPUT_INTDIR})
add_custom_target(l0-loader DEPENDS ${L0_LIBRARY} COMMENT "Copying Level Zero Loader ...")
if(MSVC)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remind me why MSVC uses static library?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is not a static library, it is an import library for .dll. To use the dll, application should link with this import library. It just has the same .lib extension as static libraries.

Copy link
Contributor

Choose a reason for hiding this comment

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

OK, then I am surprised that cmake doesn't have something for it. Linking is always to .lib on Windows and .so on Linux. Even if there is a better way to write this, it shouldn't block this PR.

Signed-off-by: Artur Gainullin <[email protected]>
@againull againull requested a review from smaslov-intel June 15, 2020 17:06
@againull againull merged commit 5e62f22 into intel:sycl Jun 15, 2020
@againull againull deleted the local_level0 branch December 3, 2022 00:02
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