deviceQuery error

Hi everyone. I’m a beginner in CUDA and I’ve just installed CUDA Toolkit. I’m getting the following message when trying to run deviceQuery:

"[i]C:\ProgramData\NVIDIA Corporation\CUDA Samples\v7.5\1_Utilities\deviceQuery> nvcc deviceQuery.cpp deviceQuery.cpp

nvcc error : ‘cl.exe’ died with status 0xC000007B[/i]"

I have no idea what to do. Can anyone help me ?

Thanks in advance !

I don’t know if it helps, but that’s what i get when I run nvcc -V:

C:\ProgramData\NVIDIA Corporation\CUDA Samples\v7.5\1_Utilities\deviceQuery>nvcc -V
nvcc: NVIDIA ® Cuda compiler driver
Copyright © 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:49:10_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17

On windows you don’t compile the sample codes from the command line like this, nor is it correct to say you are “trying to run deviceQuery”. Your indicating command is trying to compile deviceQuery, not run deviceQuery.

Please follow the directions in the windows getting started guide, which will explain how to set up cuda, and how to compile and run the sample codes. You need to compile using a visual studio build command, not from the command line.

http://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html#abstract

Thank you so much. You’ve helped me a lot !