


You will first need to find out your gpu details using the method in the question part there, that is the deviceQuery app according to : Note: If you need only C++ compiler try the VS build Tools and Windows SDK only. Now run the required commands to compile. You can also check the path (if it is set correctly) with where cl.exe command. The path may change according to your Visual Studio version.

Change that parameter to x86 for 32 bit Intel CPU. This will set all the required paths for you. Open a Command Prompt (CMD) window, run this command: call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" 圆4 (path changes according to your Visual Studio version, edition, and installation location). Try searching for the name of the command prompt file, such as VsDevCmd.bat,Ĭ:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools The official way is to use developer command prompt that comes with Visual Studio only. Setting only cl.exe path will not take effect as it need other tools also. Something has changed, but the system does not appear to work. Setting any one of these paths to PATH in my environment variables then running "nvcc displayQueue" or "nvcc bandwidth" again then only gives the error: Upon doing this though it appears that the installation did not set a path to a compiler "cl.exe" in the environment variables.Īttempting to find a "cl.exe" in my files appears to be another issue as I have multiple "cl.exe"'s under the following paths: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\3\bin\Hostx86\x86 In following with this, I attempted to download the community version of Visual Studio 2017 to obtain a C++ compiler and "cl.exe". When I attempt to run the sample solutions they provide to ensure the installation was successful - ie nvcc displayQueue or nvcc bandwidth I only received the following error: I can run nvcc -V and get below as I would expect:

As far as I can tell I haven't had any issues with this. Following this I have attempt to set up CUDA, I have been following the guide set up by Nvidia here. I am attempting to set up PyTorch to work my laptop's on board GTX 1050 GPU.
