I am trying to start programming CUDA in windows 10. I have installed Visual Studio 2013 community version and I have also downloaded and installed the CUDA toolkit 7.5 for windows platform from NVIDIA website. The process of installation and integration with visual studio went all well and I could make a new project in Visual Studio to run with CUDA Runtime 7.5. But when i try to build the project, I get some errors including the following:
Error 1 error : The CUDA Toolkit v7.5 directory '' does not exist.
Please verify the CUDA Toolkit is installed properly or define the CudaToolkitDir
property to resolve this error. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 7.5.targets 511 9 Cuda1
I have checked the following path and I could find the following files there:
The mentioned "CUDA 7.5.targets" file in located there and i can't understand why it continues to give the following error. I have also set the custom directory path in the project properties to the path mentioned in the error and it didn't work either. I would thank you if you could help me solve this.
I found the problem and it was with the installation of the CUDA toolkit. To solve this, I did the following:
Now the code compiles and runs without problems.