I currently can compile the sample code in MATLAB with VS2005 as the compiler.
I installed VS2008, verified it worked separately, and updated the nvmexopts.bat file to call VS2008. However, when I try to compile using the nvmex command in MATLAB, it produces the following linker error:
nvmex -f nvmexopts.bat Szeta.cu -IC:\cuda\include -LC:\cuda\lib -lcufft -lcudart
abdelali target arch: win64
Microsoft ® Incremental Linker Version 9.00.21022.08
Copyright © Microsoft Corporation. All rights reserved.
LINK : fatal error LNK1181: cannot open input file ‘kernel32.lib’
C:\PROGRA~1\MATLAB\R2009A\BIN\NVMEX.PL: Error: Link of ‘Szeta.mexw64’ failed.
??? Error using ==> nvmex at 206
Unable to complete successfully.
I have attached the nvmex.pl and nvmexopts.bat files I am using. The set with _9 in the name is the one I am trying to use with VS2008. The other set works great for VS2005 and my setup in case anyone else is looking for these files.
Vista Business x64
Matlab 2009a x64 (CUDA plug in 1.1)
Visual Studio 2008 (VS Vizard 2.0 used for setup)
CUDA version 2.2
nvmexopts.bat.txt (3.05 KB)
nvmex.pl.txt (106 KB)
nvmexopts_9.bat.txt (3.05 KB)