-
Notifications
You must be signed in to change notification settings - Fork 15
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
Support Windows #79
Support Windows #79
Conversation
I've done a little experimentation with this locally. I've tried installing the whole Conda CUDA toolkit for 12.4 (
Maybe I need to use a system-installed toolkit? (Not necessarily asking for help here, I can continue investigating, but just adding a note of what I've encountered so far) |
Make sure you install everything from conda-forge. I think the nvidia channel is not aligned until CUDA 12.5. I developed all Windows stuff using CUDA from conda-forge and it's super handy. Let me know if this helps. |
I did get everything from conda-forge. I'll carry on looking into this when I get a moment. |
Superseded by #111. |
To be discussed internally...
There seems to be a complex interplay between CMake generators and CMake’s
CUDA
lang support…CUDA
lang enabled:%CONDA_PREFIX%\Library\extras\visual_studio_integration\MSBuildExtensions
(luckily CMake explicitly suggested this path so there’s no guess work)cudart.lib
,cudart_static.lib
, andcudadevrt.lib
from%CONDA_PREFIX%\Library\lib
to%CONDA_PREFIX%\Library\lib\x64
. It seems this is what CMake-VS assumes (at nvcc detect stage)?!--config-settings=cmake.args=-Tcuda=%CONDA_PREFIX%\Library -v .
topip
.CUDA
lang disabled (so onlyCXX
being listed):CUDA
lang anyway, it was an overkill.)CUDA
lang enabled/disabled: error (either header not found or unresolved symbols; it seems Ninja on Windows does not generate right compiler/linker flags…