No CUDA toolset found – CMAKE/MAKE


Okay this, Is a highly frustrating error because it doesn’t make sense. Issue being, assuming, that you’ve already installed the cuda toolkit. I installed 11.8 As that’s going to be your most stable bet. That being said, this is an error you get when you shouldn’t be getting it.

Let me tell you how to fix it:

First of all, I can’t explain to you why this is happening. What I do understand is that there is an error in the install process that doesn’t copy some files over. So I hate to say it to you but you’re gonna have to do some file copy and to fix this.

You need to find these files (the v11.8 may change depending on which version you have installed(:

CUDA 11.8.props
CUDA 11.8.targets
CUDA 11.8.xml
Nvda.Build.CudaTasks.v11.8.dll

then you need to copy them into the following folder:

C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\BuildCustomizations
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations

Once you’ve done that, close your terminal window and open it back again.
Go to the folder you are making

add write this:

cmake .. -DLLAMA_CUDA=ON -DCMAKE_GENERATOR_TOOLSET="cuda=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8

What you’ve done is give explicit direction to the make command as to where CUDA resides. It will work now

Leave a Reply

Your email address will not be published. Required fields are marked *