![]() ![]() |
Nov 10 2009, 02:14 AM
Post
#1
|
|
![]() Group: Members Posts: 2 Joined: 4-November 09 Member No.: 244,145 Club SLI Member: No |
Hello,
I'm having problems compiling the Matlab plugin 1.1 example with cuda 2.2 on Windows xp on macbook pro with Nvidia 8600M and VC 2008 In particular : >> nvmex -f nvmexopts.bat Szeta.cu -IC:\cuda\include -LC:\cuda\lib -lcufft -lcudart nvcc fatal : Unknown option 'oC:\DOCUME~1\ADMINI~1\IMPOST~1\Temp\mex_kO2H12\Szeta.obj' C:\PROGRA~1\MATLAB\R2009B\BIN\NVMEX.PL: Error: Compile of 'Szeta.cu' failed. ??? Error using ==> nvmex at 206 Unable to complete successfully. I tried all the nvmex.pl and nvmexopt.bat on the forum pointing to the correct folder of VC 2008 but this is the best I could get. I'm attaching the two I'm using. Anyone can help me? Thank you!! This post has been edited by francescoc: Nov 10 2009, 08:19 PM |
|
|
|
Nov 10 2009, 09:08 PM
Post
#2
|
|
![]() Group: Members Posts: 2 Joined: 9-November 09 Member No.: 244,912 Club SLI Member: No |
Use http://www.mathworks.com/matlabcentral/fileexchange/25314-cuda-mex , it will autogenerate a cuda_mex script not unlike the nvmex script, and you can compile with debug symbols with device emulation:
cuda_mex -g COMPFLAGS="$COMPFLAGS -deviceemu" Szeta.cu -IC:\CUDA\include -LC:\CUDA\lib -lcufftemu |
|
|
|
Nov 13 2009, 02:20 AM
Post
#3
|
|
![]() Group: Members Posts: 2 Joined: 4-November 09 Member No.: 244,145 Club SLI Member: No |
perfect! that works for compiling!!
but now new problems came up.. I'm moving my code to windows from MacOSx for various reasons and the part of code that uses CUDA comes from a project posted on mathworks forum called cudaconv, which was developed and tested under mac environment. One of the requisites was "installing CUDA Kext" option. Well, is there any reason why this code compiles with no errors and it doesn't work? Thank you |
|
|
|
![]() ![]() |
| Copyright 2008 NVIDIA Corporation. Terms of Use | Legal Info | Privacy Policy | Time is now: 23rd November 2009 - 02:45 PM |