Wrap linker flags on Windows for IntelLLLVM
The Intel C++ compiler requires linker flags to be wrapped, because CMake passes them through the compiler driver.
Prefix linker options with LINKER:.
CMake will transorm it to the appropriate flag for the compiler driver: (Nothing for MSVC or clang-cl, and /Qoption,link for icx), so this will work for other compilers and for earlier CMake versions too.
[!NOTE]
Requires updating the fetched versions of UMF and Level Zero to versions that include the fix for the same problem. I tested locally with-DUMF_TAG=e6ff45e1636bd172117bab6d9f4d00638113f592 -DUR_LEVEL_ZERO_LOADER_TAG=v1.18.1.
Fixes: #2178
@lukaszstolarczuk @ldorau @lisanna-dettwyler
I can try and add an icx build in the CI, if you want...? (I'm doing such workflow for UMF at the moment)
Ping, can we get this merged? I don't have merge access myself.
Ping, can we get this merged? I don't have merge access myself.
@oneapi-src/unified-runtime-level-zero-write still need to approve this.
@kbenzie can you approve the workflows? I rebased to see if the CI failures go away or if I will need to investigate.
Ping @oneapi-src/unified-runtime-level-zero-write
@kbenzie can you approve the workflows? I rebased to see if the CI failures go away or if I will need to investigate.
The pull request labeler job is expected to fail for PRs from people who aren't a memory of the UR traige team. If there are e2e failures that doesn't necessarily block merging as long as we can determine they are not related to these changes.
@nrspruit @kbenzie Can this get merged? I'm fairly certain the CI failures are not caused by this change.
just going to rebase to see if we can get a clean run of the e2e l0 job
@aarongreig bump, should I look into the failures? I am not familiar with L0 and I don't expect runtime failures from this. This blocking some other future work for me.
No, those failures are expected.
No, those failures are expected.
Okay, Thank you. Lets get this merged then pretty please :).
ping @callumfare @nrspruit @pbalcer
@Maetveis Please resolve the conflicts and I'll make sure this gets merged soon
@Maetveis Please resolve the conflicts and I'll make sure this gets merged soon
Thanks! Done.
Since #2100 was reverted and it had a CMake fix that was needed here (the source of the conflict previously) I restored this PR to how it was before conflict resolution.
Ping @callumfare, please merge this ASAP.