Matlab 2008b, Cuda 2.2, problems with nvmex

When compiling the example matlab-cuda files (from the nvidia website:… there is something going wrong using nvmex.

When typing:

nvmex -f nvmexopts.bat -IC:\cuda\include -LC:\cuda\lib -lcufft -lcudart

matlab prints the following: 




'mt' is not recognized as an internal or external command, 

operable program or batch file.

An Szeta.mexw32 is created, but when called gives the error:

??? Invalid MEX-file 'C:\Documents and Settings\s030301\My

Documents\MATLAB\Matlab_CUDA_1.1\Szeta.mexw32': The specified module could

not be found.

I’ve searched these forums, but not found similar problems. Any ideas?

Compiling the fft functions using matlab’s own mex does work, and the resulting cuda_fft functions do work.

I have already downloaded the nvmexopts.bat and files for use with Matlab 2008b, but I have Visual Studio 9.0 installed. (as opposed to 8.0 as mentioned in nvmexopts.bat)