From: Sukh Rao on
Hi All,
I am trying to create m file from cuda files name Szeta.cu(It is given in Matlab_CUDA_1.1 Folder),but I find the following error:
nvmex -f nvmexopts.bat Szeta.cu -IC:\cuda\include -LC:\cuda\lib
nvcc fatal : Cannot find compiler 'cl.exe' in PATH

C:\PROGRA~1\MATLAB71\BIN\NVMEX.PL: Error: Compile of 'Szeta.cu' failed.

??? Error using ==> nvmex
Unable to complete successfully.
Details of my system
Window 7 ultimate
Matlab Version:7.1.0.246 (R14) Service Pack 3
Visual Studio 2008
CudaToolkit :cudatoolkit_2.3_win_32
Cuda Sdk:cudasdk_2.3_win_32
Following are the configuration of my nvmexopts.bat File:
set MATLAB=%MATLAB%
set VS80COMNTOOLS=%VS80COMNTOOLS%
set VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 9.0
set VCINSTALLDIR=%VSINSTALLDIR%\VC
set
PATH=%VCINSTALLDIR%\BIN\;%VCINSTALLDIR%\PlatformSDK\bin;%VSINSTALLDIR%\Common7\IDE;%VSINS
TALLDIR%\SDK\v2.0\bin;%VSINSTALLDIR%\Common7\Tools;%VSINSTALLDIR%\Common7\Tools\bin;%VCIN
STALLDIR%\VCPackages;%MATLAB_BIN%;C:\Program Files\Microsoft
SDKs\Windows\v6.0A\bin;%PATH%

set
INCLUDE=%VCINSTALLDIR%\ATLMFC\INCLUDE;%VCINSTALLDIR%\INCLUDE;%VCINSTALLDIR%\PlatformSDK\I
NCLUDE;%VSINSTALLDIR%\SDK\v2.0\include;%INCLUDE%
set
LIB=%VCINSTALLDIR%\ATLMFC\LIB;%VCINSTALLDIR%\LIB;%VCINSTALLDIR%\PlatformSDK\lib;%VSINSTAL
LDIR%\SDK\v2.0\lib;%MATLAB%\extern\lib\win32;%LIB%;C:\Program Files\Microsoft
SDKs\Windows\v6.0A\Lib
Tell how can I remove this error,so that my cuda examples running fine on Matlab.
Thanks in Advance
From: Oliver Woodford on
"Sukh Rao" wrote:
> Hi All,
> I am trying to create m file from cuda files name Szeta.cu(It is given in Matlab_CUDA_1.1 Folder),but I find the following error:
> nvmex -f nvmexopts.bat Szeta.cu -IC:\cuda\include -LC:\cuda\lib
> nvcc fatal : Cannot find compiler 'cl.exe' in PATH
>
> C:\PROGRA~1\MATLAB71\BIN\NVMEX.PL: Error: Compile of 'Szeta.cu' failed.

Hi there

cl.exe is the Visual C++ compiler. Find it and put the directory it is in on your system path.

Regards,
Oliver