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

Fix Windows CUDA build compatibility with newest MSVC #1276

Conversation

matthewdouglas
Copy link
Member

A recent update to CI build image for Windows has broken the Windows CUDA builds. This is because the latest version of the Visual Studio compiler is version is v1940 [1]. For CUDA versions below 12.4, the check that nvcc uses for support is to only allow up to v193x [2]. The intent of that check is to support up to VS2022.

There's a change in CMake 3.29.4 for this when using the VS generator [3], but this PR will work around this in a similar way for older CMake versions and when using ninja.

cc: @Titus-von-Koeller

References
[1] https://devblogs.microsoft.com/cppblog/msvc-toolset-minor-version-number-14-40-in-vs-2022-v17-10/
[2] pytorch/vision#8492
[3] https://gitlab.kitware.com/cmake/cmake/-/issues/26003

@Titus-von-Koeller Titus-von-Koeller merged commit 6948f0b into bitsandbytes-foundation:main Jul 15, 2024
24 checks passed
@Titus-von-Koeller
Copy link
Collaborator

Perfect, @matthewdouglas, looking good! Thanks a lot for handling this ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants