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

Native Windows support #396

Open
1 of 2 tasks
maleadt opened this issue Mar 13, 2024 · 0 comments
Open
1 of 2 tasks

Native Windows support #396

maleadt opened this issue Mar 13, 2024 · 0 comments
Labels
help wanted Extra attention is needed libraries Things about libraries and how we use them. upstream Out of our hands.

Comments

@maleadt
Copy link
Member

maleadt commented Mar 13, 2024

We currently only support Windows through WSL. Native support involves:

  • Level Zero: provided by the closed-source driver, so we just rely on ze_loader.dll
  • Libraries: depend on our oneAPI Support library, as Intel vendor libraries only expose a C++ ABI

The problem with building the oneAPI Support library for Windows is that our build environment uses MinGW. This poses issues when linking C++ libraries like sycl7.dll, which exposes a C++ API, and the MinGW and MSVC C++ ABIs are incompatible (see JuliaPackaging/Yggdrasil#8285 (comment)).

AFAIU, there's a couple possible solutions here:

  • use clang-cl to target the MSVC ABI from our build environment: this would require significant work on the BinaryBuilder side (or a very hacky build recipe) to ensure the correct SDK/sysroot bits are available
  • hope that Intel provides MinGW-compatible binaries
  • hope that Intel adds C APIs to its vendor libraries (as the C ABI is compatible between MinGW and MSVC).
@maleadt maleadt added help wanted Extra attention is needed libraries Things about libraries and how we use them. upstream Out of our hands. labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed libraries Things about libraries and how we use them. upstream Out of our hands.
Projects
None yet
Development

No branches or pull requests

1 participant