System Specs:
CUDA 2.0.
Matlab R2007b (7.5.0).
Visual C++ Express 2005.
Vista x64.
I cannot successfully compile the Szeta example.
I downloaded the nvmexopts.bat and nvmex.pl supplied here in one of the forum threads. When compiling I get the following error:
>> nvmex -f nvmexopts.bat Szeta.cu -IC:\cuda\include -LC:\cuda\lib -lcufft -lcudart
Szeta.cu
c:\cuda\include\common_functions.h(56): warning: dllexport/dllimport conflict with "clock"
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\INCLUDE\time.h(176): here; dllimport/dllexport dropped
tmpxft_00001350_00000000-3_Szeta.cudafe1.gpu
tmpxft_00001350_00000000-8_Szeta.cudafe2.gpu
c:\cuda\include\common_functions.h(56): warning: dllexport/dllimport conflict with "clock"
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\INCLUDE\time.h(176): here; dllimport/dllexport dropped
tmpxft_00001350_00000000-3_Szeta.cudafe1.cpp
Microsoft (R) Incremental Linker Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
Szeta.obj
LINK : fatal error LNK1181: cannot open input file 'kernel32.lib'
C:\PROGRA~1\MATLAB\R2007B\BIN\NVMEX.PL: Error: Link of 'Szeta.mexw64' failed.
??? Error using ==> nvmex at 206
Unable to complete successfully.
I installed the SDK and defined the MSSDK variable as instructed.
If I try copying the lib files from the x64 MSSDK directory into matlab, I get the following error:
>> nvmex -f nvmexopts.bat Szeta.cu -IC:\cuda\include -LC:\cuda\lib -lcufft -lcudart
Szeta.cu
c:\cuda\include\common_functions.h(56): warning: dllexport/dllimport conflict with "clock"
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\INCLUDE\time.h(176): here; dllimport/dllexport dropped
tmpxft_00000e68_00000000-3_Szeta.cudafe1.gpu
tmpxft_00000e68_00000000-8_Szeta.cudafe2.gpu
c:\cuda\include\common_functions.h(56): warning: dllexport/dllimport conflict with "clock"
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\INCLUDE\time.h(176): here; dllimport/dllexport dropped
tmpxft_00000e68_00000000-3_Szeta.cudafe1.cpp
Microsoft (R) Incremental Linker Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
Szeta.obj
Szeta.obj : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
C:\PROGRA~1\MATLAB\R2007B\BIN\NVMEX.PL: Error: Link of 'Szeta.mexw64' failed.
??? Error using ==> nvmex at 206
Unable to complete successfully.
I don’t know what else to do… Any ideas?
Thanks!
Y.