CULA in Matlab Cuda Mexfile

General discussion for CULA. Use this forum for questions, examples, feedback, and feature requests.

CULA in Matlab Cuda Mexfile

Postby fraga » Sun Feb 19, 2012 5:41 am

Hello everybody,
please does anyone can explain me step by step how to use cuda routines in acuda-mexfile containg my own cuda code?

Also compiling a simple mexfile using only culaInitialize() and culaShutdown() and trying to run it I obtained the error : "Invalid MEX FIle..". So, I solved the problem coping the shared libraries in CULA bin64 folder into the folder containing my mex, but I'm wondering, how can I solve it in a "stronger" way? I'm using Windows 7 64bit, Matlab R2008b, CULA R13, CUDA 4.0.

thanks in advance
fraga
 
Posts: 4
Joined: Fri Feb 17, 2012 9:54 am

Re: CULA in Matlab Cuda Mexfile

Postby john » Mon Feb 20, 2012 6:20 am

We did a multipart blog series on this topic a while ago:

http://www.culatools.com/blog/2010/07/1 ... ab-part-1/

http://www.culatools.com/blog/2010/07/2 ... ab-part-2/

This is probably a good place to start if you haven't seen it yet.
john
Administrator
 
Posts: 587
Joined: Thu Jul 23, 2009 2:31 pm

Re: CULA in Matlab Cuda Mexfile

Postby kyle » Mon Feb 20, 2012 12:40 pm

To answer your second question, having the CULA libraries in your Windows PATH variable should be enough.
kyle
Administrator
 
Posts: 301
Joined: Fri Jun 12, 2009 7:47 pm

Re: CULA in Matlab Cuda Mexfile

Postby fraga » Thu Mar 08, 2012 2:50 am

Solved. thanks.
fraga
 
Posts: 4
Joined: Fri Feb 17, 2012 9:54 am


Return to General CULA Discussion

Who is online

Users browsing this forum: No registered users and 1 guest