i use this nvmex_r2008a.zip given by mfatica (http://forums.nvidia.com/index.php?showtopic=66961) on my winXPsp3 (32bit). I use CUDA 2.0beta on 8800GTX.
I met below errors when following Matlab_CUDA_1.1\Readme.txt:
QUOTE
E:\Codes\WB\Matlab_CUDA-1.1a\Matlab_CUDA_1.1>mex -setup
Please choose your compiler for building external interface (MEX) files:
Would you like mex to locate installed compilers [y]/n?
Select a compiler:
[1] Lcc-win32 C 2.4.1 in E:\PROGRA~1\MATLAB\R2008a\sys\lcc\bin
[2] Microsoft Visual C++ 2005 in E:\Program Files\Microsoft Visual Studio 8
[0] None
Compiler: 1
Please verify your choices:
Compiler: Lcc-win32 C 2.4.1
Location: E:\PROGRA~1\MATLAB\R2008a\sys\lcc\bin
Are these correct [y]/n? y
Trying to update options file: C:\Documents and Settings\Ke\Application Data\MathWorks\MATLAB\R200
From template:� � � � � � � E:\PROGRA~1\MATLAB\R2008a\bin\win32\mexopts\lccopts.bat
Done . . .
� Warning: The MATLAB C and Fortran API has changed to support MATLAB
� � � � � variables with more than 2^32-1 elements.� In the near future
� � � � � you will be required to update your code to utilize the new
� � � � � API. You can find more information about this at:
� � � � � [url=“http://www.mathworks.com/support/solutions...lution=1-5C27B9”]http://www.mathworks.com/support/solutions...lution=1-5C27B9[/url]
� � � � � Building with the -largeArrayDims option enables the new API.
E:\Codes\WB\Matlab_CUDA-1.1a\Matlab_CUDA_1.1>mex fft2_cuda.c -IG:\CUDA\include -LG:\CUDA\lib -lcud
Writing library for fft2_cuda.mexw32
c:\docume~1\ke\locals~1\temp\mex_nikyfd\fft2_cuda.obj .text: undefined reference to '_cudaMalloc@8
c:\docume~1\ke\locals~1\temp\mex_nikyfd\fft2_cuda.obj .text: undefined reference to '_cudaMemcpy@1
c:\docume~1\ke\locals~1\temp\mex_nikyfd\fft2_cuda.obj .text: undefined reference to '_cufftPlan2d@
c:\docume~1\ke\locals~1\temp\mex_nikyfd\fft2_cuda.obj .text: undefined reference to '_cufftExecC2C
c:\docume~1\ke\locals~1\temp\mex_nikyfd\fft2_cuda.obj .text: undefined reference to '_cufftDestroy
c:\docume~1\ke\locals~1\temp\mex_nikyfd\fft2_cuda.obj .text: undefined reference to ‘_cudaFree@4’
� E:\PROGRA~1\MATLAB\R2008A\BIN\MEX.PL: Error: Link of ‘fft2_cuda.mexw32’ failed.
i learn from the head of fft2_cuda.c that says “Setup the mex build from a Matlab shell: mex -setup”, so i chose [1] rather than vc as mex compiler.
Hi !
After doing all the previous operations ( the sdk works well), I put this line on matlab
nvmex -f nvmexopts.bat cudaMallocAndMemcpy.cu -IC:\cuda\include -LC:\cuda\lib -lcudart
it gaves me
Could not find the compiler “nvcc” on the DOS path.