Skip to content

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
@Titus-von-Koeller
Copy link
Collaborator

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

matthewdouglas added a commit to matthewdouglas/bitsandbytes that referenced this pull request Oct 28, 2024
…oundation#1276)

* Add support for building with latest MSVC

* Update MSVC 1940+ support for CUDA builds.
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