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”
“nvcc --ptxas-options=-v -c”
nvcc -ptx

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

how can i use nvcc .


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.