We’ve not seen this error before. We’re able to compile without problem on XP32 with R2009A. To help, there are two things that I can suggest:
I’ve attached the nvmex.pl file that we’re using so that you can check to see if yours in different. We use the ones provided as-is by NVIDIA.
Why are your using CUDA 1.1 toolkit? You should upgrade to 2.2 toolkit. Your driver seems to be 2.2. You should avoid having a mismatch between driver and toolkit versions.
I had the same problem with following environment:
Hardware:
Notebook Sony VAIO SZ77
GeForce 8400M GS
Software:
Vista 32bit
CUDA driver/SDK/toolkit: 2.0 (I can’t use 2.1/2.2/2.3 because 8400M GS only support CUDA 2.0)
VC 2005 Express
MATLAB 7.8.0 (R2009a)
Matlab_CUDA_1.1 (downloaded from http://developer.nvidia.com/object/matlab_cuda.html)
I tried both nvmex.pl from sirotenko and melonakos, but still failed.
Then I tried to modify original nvmex.pl (from Matlab_CUDA_1.1) at line 728, remove the uuid code:
I am having the same difficulties. I am trying to compile the examples and I get an error when I get to the cuda portion. All the mex files compile and run fine. When I run
nvmex -f nvmexopts.bat Szeta.cu -IC:\cuda\include -LC:\cuda\lib -lcufft -lcudart
using the the original nvmex.pl file I get:
Undefined subroutine &main::uuidgen called at C:\Program Files\MATLAB\R2008b Student\bin\nvmex.pl line 728.
When I use melonako’s nvmex.pl file I get:
nvcc fatal : Unknown option ‘oC:\DOCUME~1\viktor\LOCALS~1\Temp\mex_nIoQuL\Szeta.obj’
When using sirotenko’s nvmex.pl I get;
abdelali target arch: win32
nvcc fatal : Unknown option ‘oC:\DOCUME~1\viktor\LOCALS~1\Temp\mex_YIdJOo\Szeta.obj’
C:\PROGRA~1\MATLAB\R2008B~1\BIN\NVMEX.PL: Error: Compile of ‘Szeta.cu’ failed.
I also tried KSL’s suggestion of editing line 728 to $main::temp_dir = mexCatdir($ENV{‘TEMP’}, tool_name() . “_” . “xxx”);
but this gives me:
nvcc fatal : Cannot find compiler ‘cl.exe’ in PATH
C:\PROGRA~1\MATLAB\R2008B~1\BIN\NVMEX.PL: Error: Compile of ‘Szeta.cu’ failed.
I am running:
i7 processor
GTX 260
Windows XP 32bit SP3
Matlab cuda 1.1a
cuda sdk 2.3
cuda driver 2.3
Matlab 7.7.0.471 (R2008b)
Microsoft Visual 2008 Express
I would be grateful if anybody could help me solve this problem.
Undefined subroutine &main::xxx called at C:\Archivos de programa\MATLAB\R2009b\bin\nvmex.pl line 728.
??? Error using ==> nvmex at 206
Unable to complete successfully.
For the “Unknown option” error, I found it helped to strip the ‘-’ by inserting the “$name_arg = substr $_,1;” at line 319 in nvmex.pl, so the section looks like below: