You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Which Visual Studio 2022 BuildTools MSVC is the best version for Cuda 11.8 and Cuda 12.4 and so #4941
Ideally the latest version should be the best, although there can possibly be unexpected regressions. Feel free to report bugs.
Latest version doesn't work with CUDA 11.8
Oh, I forgot to say that the version of CUDA should also be the latest.
The support for CUDA before 12.4 was dropped by #4475 which was merged in VS 2022 17.11. So 17.10 should be OK for CUDA 11.8.
thanks . are there any place that shows 17.10 supports which cuda list? or like 17.8? also an app that works with cuda 11.8, would work 100% with cuda 12.4 if compiled with 17.11 can we tell that?
Here's the full history. It helps to know that CUDA rejects too-new VS versions (for having a too-large _MSC_VER value; they care about the first 3 digits), while MSVC's STL requires a minimum CUDA version and rejects too-old CUDA versions. (This is because we depend on new features and bugfixes.) MSVC's STL never rejects newer CUDA versions, although we only test with the specific version we require.
CUDA has an escape hatch compiler option, and MSVC's STL has an escape hatch macro, that disable this enforcement. Escape-hatching CUDA to allow a newer VS version is very likely to work. Escape-hatching MSVC's STL to use an older CUDA version is much more perilous.
CUDA 10.1 RTW began allowing VS 2019 16.0 (_MSC_VER=1920).
Activity
frederick-vs-ja commentedon Sep 6, 2024
Ideally the latest version should be the best, although there can possibly be unexpected regressions. Feel free to report bugs.
FurkanGozukara commentedon Sep 6, 2024
Latest version doesn't work with CUDA 11.8
frederick-vs-ja commentedon Sep 6, 2024
Oh, I forgot to say that the version of CUDA should also be the latest.
The support for CUDA before 12.4 was dropped by #4475 which was merged in VS 2022 17.11. So 17.10 should be OK for CUDA 11.8.
FurkanGozukara commentedon Sep 6, 2024
thanks . are there any place that shows 17.10 supports which cuda list? or like 17.8? also an app that works with cuda 11.8, would work 100% with cuda 12.4 if compiled with 17.11 can we tell that?
StephanTLavavej commentedon Sep 6, 2024
Here's the full history. It helps to know that CUDA rejects too-new VS versions (for having a too-large
_MSC_VERvalue; they care about the first 3 digits), while MSVC's STL requires a minimum CUDA version and rejects too-old CUDA versions. (This is because we depend on new features and bugfixes.) MSVC's STL never rejects newer CUDA versions, although we only test with the specific version we require.CUDA has an escape hatch compiler option, and MSVC's STL has an escape hatch macro, that disable this enforcement. Escape-hatching CUDA to allow a newer VS version is very likely to work. Escape-hatching MSVC's STL to use an older CUDA version is much more perilous.
_MSC_VER=1920).if constexpr, require CUDA 10.1 Update 2 #1544)_MSC_VER=1930)._MSC_VER=1940).We recommend that you use the latest VS version (an even-numbered Long-Term Support release, if that's what you prefer) and the latest CUDA version.