cuda mex file compilation on 64 bit architecture
Hi,
please can anybody tell me how can I compile a cuda mex file with visual studio 2010 windows 7 64bit matlab r2011b cuda 4.0.
Since I have also Visual studio 2008 installe I tried to use this configuration http://forums.nvidia.com/index.php?showtopic=98319&pid=595371&mode=threaded&start=#entry595371http://www.cs.ucf.edu/~janaka/gpu/index.htm
but I always obtain this error:
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\/../../VC/\INCLUDE\crtdefs.h(490): error: invalid redeclaration of type name "size_t"

Any ideas?
Thanks in advance.
Hi,

please can anybody tell me how can I compile a cuda mex file with visual studio 2010 windows 7 64bit matlab r2011b cuda 4.0.

Since I have also Visual studio 2008 installe I tried to use this configuration http://forums.nvidia.com/index.php?showtopic=98319&pid=595371&mode=threaded&start=#entry595371http://www.cs.ucf.edu/~janaka/gpu/index.htm

but I always obtain this error:

C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\/../../VC/\INCLUDE\crtdefs.h(490): error: invalid redeclaration of type name "size_t"



Any ideas?

Thanks in advance.

#1
Posted 12/02/2011 11:14 AM   
Hi,
I am having exactly the same problem. Any solution found so far?
thanks.
Hi,

I am having exactly the same problem. Any solution found so far?

thanks.

#2
Posted 03/20/2012 01:51 AM   
I usually compile a lib-file in visual studio. Then I make a Matlab wrapper mex-file and link the library when I compile the mex-file in Matlab.
I usually compile a lib-file in visual studio. Then I make a Matlab wrapper mex-file and link the library when I compile the mex-file in Matlab.

#3
Posted 07/02/2012 08:04 AM   
Scroll To Top