how to use nvcc (i get an error)

i tried to compile my .cu file by nvcc at linux enviroment by cygwin. there are a topic in this forum but it could not solve my problem. i compile my file with

“nvcc -c mycuda.cu”
“nvcc --ptxas-options=-v -c mycuda.cu”
nvcc mycuda.cu -ptx

and get error message like “cannot find compiler cl.exe in path” from all of them

how can i use nvcc .

thanks!

if you’re running on Windows, you can only use the MSVC compiler (which means you need to install Visual Studio/VC++ Express and use the VS Command Prompt). cygwin is not supported.