MATLAB: 64-bit compile of .cu to .ptxw64 –> ‘cannot execute c1xx.dll’ (error D8027)

.cu64-bitc1.dllc1xx.dllcl.execompilecuda_webinard8027nvccParallel Computing Toolboxptxptxw64

Hi all,
I'm setting up an environment for 64-bit Matlab/cuda kernel-development. Basically I want to be able to compile .cu files into 64-bit .ptx files so that I can load a cuda kernel to Matlab and utilize it with feval.
I call nvcc with the following line:
nvcc -m 64 -ptx -Xptxas=-v -arch sm_20 -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin" -I "C:\Program Files\MATLAB\R2013a/extern/include" applyScaleFactors.cu --output-file applyScaleFactors.ptxw64
I get the following error:
cl : Command line error D8027 : cannot execute 'C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/../../VC/bin/amd64\c1xx.dll'
Any ideas on how to solve this would be really helpful!
Background:
Regards, Jonathan

Best Answer

Problem solved!
I had during previous troubleshooting placed a the files cl.exe and vcvars32.bat in my .cu project folder. Removing these solved my issue.
Cheers, Jonathan
Related Question