NVMEXOPTS.bat for MatLab 2007b

I have for some time now tried, whitout succes, to implement CUDA in MatLab 2007b.

As mentioned I have MatLab 2007b installed on a Windows XP 32-bit machine and ofcause installede the latest CUDA driver, CUDA Toolkit and SDK which were found at nvidia.com today. MS Visual studio 8 is also installed. Further more I tried to follow the instructions in the readme of the CUDA plugin for MatLab.

I am sure that the CUDA installations works properly as I can run any of the examples in the SDK.

The first mex commands goes without any trouble but the nvmex command:
nvmex -f nvmexopts.bat Szeta.cu -IC:\cuda\include -LC:\cuda\lib -lcufft -lcudart

which results in a long serie of errors and finally a Error using ==> nvmex at 206.

nvmex -f nvmexopts.bat Szeta.cu -IC:\cuda\include -LC:\cuda\lib -lcufft -lcudart
Szeta.cu
tmpxft_000000d4_00000000-3_Szeta.cudafe1.gpu
tmpxft_000000d4_00000000-8_Szeta.cudafe2.gpu
tmpxft_000000d4_00000000-3_Szeta.cudafe1.cpp
cl : Command line warning D9025 : overriding ‘/EHc-’ with ‘/EHc’
tmpxft_000000d4_00000000-13_Szeta.ii
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.h(239) : error C2065: ‘_Buffer’ : undeclared identifier
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.h(239) : error C3861: ‘wchar_t’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.h(239) : error C2988: unrecognizable template declaration/definition
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.h(239) : error C2059: syntax error : ‘const’
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.h(241) : error C2143: syntax error : missing ‘;’ before ‘{’
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.h(241) : error C2447: ‘{’ : missing function header (old-style formal list?)
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.h(243) : error C3861: ‘wchar_t’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.h(243) : error C2988: unrecognizable template declaration/definition
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.h(243) : error C2059: syntax error : ‘const’
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.h(245) : error C2143: syntax error : missing ‘;’ before ‘{’
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.h(245) : error C2447: ‘{’ : missing function header (old-style formal list?)
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.h(249) : error C3861: ‘wchar_t’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.h(249) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.h(249) : error C2433: ‘_wstrdate_s’ : ‘inline’ not permitted on data declarations
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.h(249) : error C2998: ‘errno_t _wstrdate_s’ : cannot be a template definition
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.h(253) : error C3861: ‘wchar_t’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.h(253) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.h(253) : error C2433: ‘_wstrtime_s’ : ‘inline’ not permitted on data declarations
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.h(253) : error C2998: ‘errno_t _wstrtime_s’ : cannot be a template definition
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.h(259) : error C3861: ‘wchar_t’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.h(259) : error C2988: unrecognizable template declaration/definition
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\time.h(259) : error C2059: syntax error : ‘const’
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\wtime.inl(46) : error C2143: syntax error : missing ‘;’ before ‘{’
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\wtime.inl(46) : error C2447: ‘{’ : missing function header (old-style formal list?)
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\wtime.inl(56) : error C3861: ‘_wctime64_s’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(193) : error C2664: ‘memchr’ : cannot convert parameter 1 from ‘const void *’ to ‘void *’
Conversion loses qualifiers
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(242) : error C2065: ‘_Dest’ : undeclared identifier
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(242) : error C3861: ‘wchar_t’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(242) : error C2988: unrecognizable template declaration/definition
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(242) : error C2059: syntax error : ‘const’
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(243) : error C2143: syntax error : missing ‘;’ before ‘{’
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(243) : error C2447: ‘{’ : missing function header (old-style formal list?)
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(249) : error C3861: ‘wchar_t’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(249) : error C2988: unrecognizable template declaration/definition
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(249) : error C2059: syntax error : ‘const’
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(250) : error C2143: syntax error : missing ‘;’ before ‘{’
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(250) : error C2447: ‘{’ : missing function header (old-style formal list?)
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(257) : error C3861: ‘wcsnlen’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(263) : error C3861: ‘wchar_t’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(263) : error C2988: unrecognizable template declaration/definition
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(263) : error C2059: syntax error : ‘const’
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(264) : error C2143: syntax error : missing ‘;’ before ‘{’
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(264) : error C2447: ‘{’ : missing function header (old-style formal list?)
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(269) : error C3861: ‘wchar_t’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(269) : error C2988: unrecognizable template declaration/definition
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(269) : error C2059: syntax error : ‘const’
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(270) : error C2143: syntax error : missing ‘;’ before ‘{’
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(270) : error C2447: ‘{’ : missing function header (old-style formal list?)
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(279) : error C3861: ‘wchar_t’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(279) : error C2062: type ‘int’ unexpected
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(280) : error C2143: syntax error : missing ‘;’ before ‘{’
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(280) : error C2447: ‘{’ : missing function header (old-style formal list?)
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(282) : error C3861: ‘wchar_t’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(282) : error C2988: unrecognizable template declaration/definition
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(282) : error C2059: syntax error : ‘const’
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(284) : error C2143: syntax error : missing ‘;’ before ‘{’
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(284) : error C2447: ‘{’ : missing function header (old-style formal list?)
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(295) : error C2065: ‘_String’ : undeclared identifier
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(295) : error C3861: ‘wchar_t’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(295) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(295) : error C2433: ‘_wcslwr_s’ : ‘inline’ not permitted on data declarations
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(295) : error C2998: ‘errno_t _wcslwr_s’ : cannot be a template definition
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(298) : error C3861: ‘wchar_t’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(298) : error C2275: ‘_locale_t’ : illegal use of this type as an expression
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(1712) : see declaration of ‘_locale_t’
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(298) : error C2146: syntax error : missing ‘)’ before identifier ‘_Locale’
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(298) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(298) : error C2433: ‘_wcslwr_s_l’ : ‘inline’ not permitted on data declarations
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(298) : error C2059: syntax error : ‘)’
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(299) : error C2143: syntax error : missing ‘;’ before ‘{’
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(299) : error C2447: ‘{’ : missing function header (old-style formal list?)
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(301) : error C3861: ‘wchar_t’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(301) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(301) : error C2433: ‘_wcsupr_s’ : ‘inline’ not permitted on data declarations
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(301) : error C2998: ‘errno_t _wcsupr_s’ : cannot be a template definition
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(304) : error C3861: ‘wchar_t’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(304) : error C2275: ‘_locale_t’ : illegal use of this type as an expression
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(1712) : see declaration of ‘_locale_t’
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(304) : error C2146: syntax error : missing ‘)’ before identifier ‘_Locale’
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(304) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(304) : error C2433: ‘_wcsupr_s_l’ : ‘inline’ not permitted on data declarations
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(304) : error C2059: syntax error : ‘)’
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(305) : error C2143: syntax error : missing ‘;’ before ‘{’
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(305) : error C2447: ‘{’ : missing function header (old-style formal list?)
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(322) : error C2664: ‘wcschr’ : cannot convert parameter 1 from ‘const __wchar_t *’ to ‘__wchar_t *’
Conversion loses qualifiers
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(324) : error C2664: ‘wcspbrk’ : cannot convert parameter 1 from ‘const __wchar_t *’ to ‘__wchar_t *’
Conversion loses qualifiers
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(326) : error C2664: ‘wcsrchr’ : cannot convert parameter 1 from ‘const __wchar_t *’ to ‘__wchar_t *’
Conversion loses qualifiers
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(328) : error C2664: ‘wcsstr’ : cannot convert parameter 1 from ‘const __wchar_t *’ to ‘__wchar_t *’
Conversion loses qualifiers
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\math.h(318) : error C3861: ‘acos’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\math.h(320) : error C3861: ‘asin’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\math.h(322) : error C3861: ‘atan’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\math.h(324) : error C3861: ‘atan2’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\math.h(326) : error C3861: ‘ceil’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\math.h(328) : error C3861: ‘cos’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\math.h(330) : error C3861: ‘cosh’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\math.h(332) : error C3861: ‘exp’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\math.h(334) : error C3861: ‘fabs’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\math.h(336) : error C3861: ‘floor’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\math.h(338) : error C3861: ‘fmod’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\math.h(340) : error C3861: ‘frexp’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\math.h(342) : error C3861: ‘ldexp’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\math.h(344) : error C3861: ‘log’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\math.h(346) : error C3861: ‘log10’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\math.h(348) : error C2065: ‘_Di’ : undeclared identifier
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\math.h(348) : error C3861: ‘modf’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\math.h(352) : error C3861: ‘pow’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\math.h(354) : error C3861: ‘sin’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\math.h(356) : error C3861: ‘sinh’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\math.h(358) : error C3861: ‘sqrt’: identifier not found
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\math.h(358) : fatal error C1003: error count exceeds 100; stopping compilation

C:\PROGRA~1\MATLAB\R2007B\BIN\NVMEX.PL: Error: Compile of ‘Szeta.cu’ failed.

??? Error using ==> nvmex at 206

Unable to complete successfully.
But really leaving me no clues of what the error is or why it is caused.
I am new to this but so far I read about different versions of the nvmexopts.bat for different versions of MatLab and since the plugin was testet on 2006b I figured that the error is in that file. Please help me and correct me if my assumptions are wrong about the .bat file.

-cheers Lars

I have exactly the same problem with Matlab 2007b.
L4rs3n, did you find the way ???

I have seen that some people modified nvmexopts.bat and nvmex.pl so as to make it work on R2008, but I have only R2007 version and don’t know where to make changes on those files :(
Can anybody help ?

Tnks a lot,
Víctor.

Same problem with CUDA toolkit 2.2 and VS2008 (VC9), but unrelated to Matlab.

EDIT: I was able to get this working by ensuring that cl.exe (VC compiler) enables /Zc:wchar_t.

Add “-Xcompiler -Zc:wchar_t” at the end of your NVCC command-line.

Alternatively, make sure nvmexopts.bat does not specify “/Zc:wchar_t-” (note the minus).

Read more about /Zc:wchar_t at: http://msdn.microsoft.com/en-us/library/dh8che7s(VS.80).aspx

Right ;), tnks eigma. I changed my nvmexopts.bat the way you say, replacing “/Zc:wchar_t-” by “/Zc:wchar_t” at COMPFLAGS, and I think it is compiling now, … as now the error es about linking ;) . --> I paste those lines at the end
However, I’m not getting a clear explanation about what is happening.
Anybody has any idea ?

USING:

  • WinXP 32bit.
  • Matlab R2007b
  • CUDA Toolkit 2.2 for Win32
  • Matlab_CUDA-1.1a.zip

nvmex -f nvmexopts.bat Szeta.cu -IC:\cuda\include -LC:\cuda\lib -lcufft -lcudart
Szeta.cu
c1xx : warning C4117: macro name ‘_WCHAR_T_DEFINED’ is reserved, ‘#define’ ignored
tmpxft_00000a08_00000000-3_Szeta.cudafe1.gpu
tmpxft_00000a08_00000000-8_Szeta.cudafe2.gpu
tmpxft_00000a08_00000000-3_Szeta.cudafe1.cpp
cl : Command line warning D9025 : overriding ‘/EHc-’ with ‘/EHc’

C:\ARCHIV~1\MATLAB\R2007B\BIN\NVMEX.PL: Error: Link of ‘Szeta.mexw32’ failed.

??? Error using ==> nvmex at 206
Unable to complete successfully.

Hi!

I have the same problem, running nvmex verbose gives me the following:

nvmex -v -f nvmexopts.bat Szeta.cu -IC:\cuda\include -LC:\cuda\lib -lcufft -lcudart

 This is mex, Copyright 1984-2006 The MathWorks, Inc. 

-> Options file specified on command line 

---------------------------------------------------------------- 

->	Options file		   = nvmexopts.bat 

	  MATLAB				 = C:\PROGRA~1\MATLAB\R2007b 

->	COMPILER			   = nvcc 

->	Compiler flags: 

		 COMPFLAGS		   = -c -D_WCHAR_T_DEFINED -Xcompiler "/c /Zp8 /GR /W3 /EHsc- /Zc:wchar_t /DMATLAB_MEX_FILE /nologo" 

		 OPTIMFLAGS		  = -D_WCHAR_T_DEFINED -Xcompiler "/MD /O2 /Oy- /DNDEBUG" 

		 DEBUGFLAGS		  = -D_WCHAR_T_DEFINED -Xcompiler "/MD /Zi /Fd"Szeta.mexw32.pdb" 

		 arguments		   =  -IC:\cuda\include 

		 Name switch		 = /Fo 

->	Pre-linking commands   =  

->	LINKER				 = link 

->	Link directives: 

		 LINKFLAGS		   = /dll /export:mexFunction /MAP /LIBPATH:"C:\PROGRA~1\MATLAB\R2007b\extern\lib\win32\microsoft" libmx.lib libmex.lib libmat.lib /implib:C:\DOCUME~1\SBRINK~1\LOCALS~1\Temp\mex_3C84B553-271F-4FA4-34A3-23D87DF371FD\templib.x /MACHINE:X86 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib 

		 LINKDEBUGFLAGS	  = /DEBUG /PDB:"Szeta.mexw32.pdb" 

		 LINKFLAGSPOST	   =  

		 Name directive	  = /out:"Szeta.mexw32" 

		 File link directive =  

		 Lib. link directive =  

		 Rsp file indicator  = @ 

->	Resource Compiler	  = rc /fo "mexversion.res" 

->	Resource Linker		=  

---------------------------------------------------------------- 

--> "nvcc  -IC:\cuda\include -c -D_WCHAR_T_DEFINED -Xcompiler "/c /Zp8 /GR /W3 /EHsc- /Zc:wchar_t /DMATLAB_MEX_FILE /nologo" /FoC:\DOCUME~1\SBRINK~1\LOCALS~1\Temp\mex_3C84B553-271F-4FA4-34A3-23D87DF371FD\Szeta.obj -IC:\PROGRA~1\MATLAB\R2007b\extern\include -IC:\PROGRA~1\MATLAB\R2007b\simulink\include -D_WCHAR_T_DEFINED -Xcompiler "/MD /O2 /Oy- /DNDEBUG" -DMX_COMPAT_32 Szeta.cu" 

Szeta.cu 

c1xx : warning C4117: macro name '_WCHAR_T_DEFINED' is reserved, '#define' ignored 

tmpxft_00000d50_00000000-3_Szeta.cudafe1.gpu 

tmpxft_00000d50_00000000-8_Szeta.cudafe2.gpu 

tmpxft_00000d50_00000000-3_Szeta.cudafe1.cpp 

cl : Command line warning D9025 : overriding '/EHc-' with '/EHc' 

tmpxft_00000d50_00000000-13_Szeta.ii 

c:\cuda\include\math_functions.h(3565) : warning C4996: 'hypot' was declared deprecated 

		c:\cuda\include\math_functions.h(299) : see declaration of 'hypot' 

		Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _hypot. See online help for details.' 

C:\PROGRA~1\MATLAB\R2007B\BIN\NVMEX.PL: Error: Compile of 'Szeta.cu' failed. 

??? Error using ==> nvmex at 206

Unable to complete successfully.

Does anybody know how to fix this? I have no idea what is going wrong, since there is no explicit error, just warnings.

Ok, finally got it to work with the nvmex.pl from http://forums.nvidia.com/index.php?showtopic=74210. … And my own nvmexopts.bat (attached) for WinXP 32, Matlab 2007b, VS8 .
nvmexopts.bat.txt (2.77 KB)

Thanks eigma,

You saved my day(s). :thumbup:

After searching a while I found your very helpful post…replacing “/Zc:wchar_t-” with “/Zc:wchar_t” in nvmexopts.bat rids out my problems

WinXP 32

Matlab 2007b

Visual Studio 8

CUDA 2.2