-
Notifications
You must be signed in to change notification settings - Fork 164
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 Support #78
Comments
Thank you for your interest in working on this! From the top of my head there are three things to consider here:
|
After trying to compile CUDA with clang, I realised it's more effort than I'm willing and able to give.
Closing this ticket as I'm not actively working on this one. Maybe someone passionate about working on clang can make this come true instead. |
Sorry to hear that, but I understand. Thanks for having a look! Maybe we can revisit the issue once clang 9 is released. It will contain the patches from the current development branch, and who knows, if we're lucky it will work out of the box ;) Also, if clang 9 works, users won't have to compile LLVM/clang before building hipSYCL since they could just download the binary from the downloads page. |
(Also note that there seem to be Windows snapshot binaries, so it should not be necessary to compile clang/llvm yourself, even for the latest development versions) |
Yes.. they are nice if just using clang with VS or so.. but sadly they don't support CMake's |
@fodinabor I didn't know that, thanks for the info! On Linux the nightly binaries work fine with |
I just want to note some things for future reference: The real issue, that I did not realize until after a while: Clang does not support plugins on Windows and probably won't do so in the near future: https://reviews.llvm.org/D16761#1441359 So to get closer to supporting hipSYCL on Windows, we'd have to either fix Clang's plugin system (😝) or build our own compiler executable, like clspv did: https://github.com/google/clspv |
Hi, |
@oscarbg Thanks for the update. So basically, we can use the runtime API, but cannot launch kernels.. Doesn't sound like "supported" to me ;) |
@illuhad you are right not supported.. just note that I wasn't able to launch kernels correctly doesn't mean they aren't working.. I had to modify some scripts to be Windows friendly in embedding the kernel binary to the exe and perhaps made some mistake or Windows driver expect some modification to kernel binary vs ROCM binary.. I think AMD shipping HIP DLL (which is a "modest" part of Windows driver (>50MB)) means something.. hope official Windows support soon.. |
As of now, hipSyCL is the only option for building and running SyCL codes with CUDA backend.
It would be of high interest to get this working on Windows because this opens possibitilies to writing cross-platform compute kernels with something other than OpenCL which has many downsides. (Nvidia tooling is nowhere as good as CUDA, Nvidia only supports OpenCL 1.2, etc..)
This ticket proposes two things:
For #2 I would like to make a PR eventually once I get this working on my machine.
The text was updated successfully, but these errors were encountered: