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

Windows SYCL Build Fix, main branch (2023.09.25.) #237

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

krasznaa
Copy link
Member

Made the SYCL build work on Windows with CMake >=3.27.

Putting version numbers in the DLL names had to be disabled completely, as the logic around DLL_NAME_WITH_SOVERSION (introduced to CMake in https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8021) seems to be set on putting version numbers into the SYCL shared library DLL names otherwise. 😕

While at it, I noticed that modern CMake versions no longer need the hack of adding /link to the linking commands (see: https://gitlab.kitware.com/cmake/cmake/-/blob/v3.27.6/Modules/Platform/Windows-IntelLLVM.cmake?ref_type=tags#L53-57), so the code now looks for a pre-existing /link or -link argument, and only modifies the linking commands if necessary.

Putting version numbers in the DLL names had to be disabled
completely, as the logic around DLL_NAME_WITH_SOVERSION seems
to be set on putting version numbers into the SYCL shared library
DLL names otherwise. :-/

While at it, I noticed that modern CMake versions no longer need
the hack of adding "/link" to the linking commands, so the code
now looks for a pre-existing "/link" or "-link" argument, and
only modifies the linking commands if necessary.
@krasznaa krasznaa added the improvement Improve an existing feature label Sep 25, 2023
@krasznaa krasznaa merged commit 8870b64 into acts-project:main Sep 25, 2023
22 checks passed
@krasznaa krasznaa deleted the WindowsSYCLFix-main-20230925 branch September 25, 2023 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improve an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant