Hi,
i use this nvmex_r2008a.zip given by mfatica (The Official NVIDIA Forums | NVIDIA ) on my winXPsp3 (32bit). I use CUDA 2.0beta on 8800GTX.
I followed Matlab_CUDA_1.1\Readme.txt smoothly until this line:
E:\Codes\GWBmat\Matlab_CUDA-1.1a\Matlab_CUDA_1.1>nvmex.pl -f nvmexopts.bat Szeta.cu -IG:\cuda\include -LG:\cuda\lib -lcufft -lcudart Szeta.cu
E:/Codes/GWBmat/Matlab_CUDA-1.1a/Matlab_CUDA_1.1/Szeta.cu(47) : fatal error C1083: Cannot open include file: ‘mex.h’: Invalid argument
� E:\PROGRA~1\MATLAB\R2008A\BIN\NVMEX.PL: Error: Compile of ‘Szeta.cu’ failed.
so i modified Szeta to have absolute path for mex.h, but met another error:
E:\Codes\GWBmat\Matlab_CUDA-1.1a\Matlab_CUDA_1.1>nvmex.pl -f nvmexopts.bat Szeta.cu -IG:\cuda\include -LG:\cuda\lib -lcufft -lcudart Szeta.cu
e:\cuda\include\common_functions.h(56): warning: dllexport/dllimport conflict
� � � � � with “clock” (declared at line 176 of "E:\Program Files\Microsoft
� � � � � Visual Studio 8\VC\INCLUDE\time.h"); dllimport/dllexport dropped
tmpxft_0000140c_00000000-3_Szeta.cudafe1.gpu
tmpxft_0000140c_00000000-8_Szeta.cudafe2.gpu
e:\cuda\include\common_functions.h(56): warning: dllexport/dllimport conflict
� � � � � with “clock” (declared at line 176 of "E:\Program Files\Microsoft
� � � � � Visual Studio 8\VC\INCLUDE\time.h"); dllimport/dllexport dropped
tmpxft_0000140c_00000000-3_Szeta.cudafe1.cpp
Microsoft ® Incremental Linker Version 8.00.50727.762
Copyright © Microsoft Corporation.� All rights reserved.
Szeta.obj
LINK : fatal error LNK1181: cannot open input file ‘libmx.lib’
� E:\PROGRA~1\MATLAB\R2008A\BIN\NVMEX.PL: Error: Link of ‘Szeta.mexw32’ failed.
so i added #pragma comment(lib,… but error repeats.
The 2 related paths are: E:\Codes\GWBmat\Matlab_CUDA-1.1a\Matlab_CUDA_1.1, and E:\Program Files\MATLAB\R2008a\bin. I can run >> speed_fft in matlab to get 4x speedup of cuda over native matlab on 2D FFT.]
Would someone kindly help me out of this hardship? Thanks a lot!