Wednesday, September 27, 2017

Setting Up CUDA on your local machine post-September 2017

1) Download and install Visual Studio 2017 (Community edition):

https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Community&rel=15

(Another option (I did not try) : http://landinghub.visualstudio.com/visual-cpp-build-tools)

Then, in the installer, click "modify" and check "Desktop development with C++". Install.

2) Download CUDA toolkit 9.0: https://developer.nvidia.com/cuda-toolkit.
Install.

3) Add "cl.exe" to path. This can be found in:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\cl.exe
4) On cmd, do:

>> nvcc test.cu -o test
>> test

We're done!