I am having problem converting .cu to .ptx. I am using nvcc as follows:
"C:\ Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\bin\nvcc" -ptx -ccbin "C:\ Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin" -o foo.ptx foo.cu
The following is displayed in return:
foo.cu c1xx : fatal error C1083: cannot open source file: 'foo.cu': No such file or directory
foo.cu is located in the \CUDA\v5.0\bin.
nvcccannot find yourfoo.cufile. Either run the command in the file's folder, or provide a full path tonvcc. - BenCptxfiles are in the directory from which you launchednvcc. For instance, if I run the following command on Linux:nvcc test.cu -ptx -o test.ptx, I gettest.ptxin the current directory. - BenC