Complie CUDA program from command prompt in windows 10

I have installed Visual Studio 2017 and CUDA 9.0. I do not want to open VS to run my programs. Therefore, I am trying to compile the cuda sample programs from command prompt. I have included “cl.exe” in PATH. But still I am getting the errors like___________

C:\ProgramData\NVIDIA Corporation\CUDA Samples\v9.0\1_Utilities\deviceQuery>nvcc deviceQuery.cpp
deviceQuery.cpp
deviceQuery.cpp(20): fatal error C1083: Cannot open include file: ‘helper_cuda.h’: No such file or directory

Please help.

1 Like