FIX CUDA and C++ Tools Compiling Errors Once and For All for Python AI Applications
Added 2024-09-22 18:47:19 +0000 UTCSolving the CUDA Compatibility Issue β Here's How
Right now, most apps still run on CUDA 11.8, but with CUDA 12.4 gaining traction, there are some changes you need to be aware of:
If you've recently updated your C++ BuildTools, you might notice it no longer plays nicely with CUDA 11.8. The solution? Youβll need to install a specific version of the BuildTools.
If youβre ready to transition, you can make CUDA 12.4 your default too. Iβve tested it, and it works smoothly with both 12.4 and 11.8.
Hereβs what youβll need to do:
1. Install the latest LTSC 17.8 BuildTools (v17.8.13, released on August 13, 2024) from this link: https://download.visualstudio.microsoft.com/download/pr/a762cfe2-a734-454f-b7ed-26b22a4ea98d/4fc8bc0c9114bfa07b70c672758b360aa69e9181896bfdb0e1dbca32142d2843/vs_BuildTools.exe
2. Uninstall your current BuildTools version.
3. Reinstall it, but this time, choose the "Desktop development with C++" option and select everything except Windows SDKs.
Iβm also planning to drop a video walkthrough soon, so stay tuned for that link once itβs live.
For more details on C++ BuildTools and CUDA compatibility, check out these links:
[CUDA Compatibility with Visual Studio 2022](https://stackoverflow.com/questions/78515942/cuda-compatibility-with-visual-studio-2022-version-17-10)
[MSVC Toolset Version Numbers](https://devblogs.microsoft.com/cppblog/msvc-toolset-minor-version-number-14-40-in-vs-2022-v17-10/)
[STL Changelog](https://github.com/microsoft/STL/wiki/Changelog)
And if youβre ready to grab those CUDA downloads, here you go:
[CUDA 11.8 Download](https://developer.nvidia.com/cuda-11-8-0-download-archive)
[CUDA 12.4 Download](https://developer.nvidia.com/cuda-12-4-0-download-archive)