Thread Subject: NVDIA CUDA on MAC OS X

Subject: NVDIA CUDA on MAC OS X

From: Kasper Marstal

Date: 25 Aug, 2009 10:31:02

Message: 1 of 3

Hello,

I'm trying to integrate CUDA with Matlab on a Mac Pro. I want to install the plugin but when I go to http://developer.nvidia.com/object/matlab_cuda.html there is only linux and windows version. I can't find any info on what other mac users do to install plugin or if it is even possible to integrate CUDA natively with the MEX interface on OS X.

Have you any experience with this issue?

Thanks

Subject: NVDIA CUDA on MAC OS X

From: Brian Arnold

Date: 25 Aug, 2009 13:24:38

Message: 2 of 3

Hello Kasper,

I would start with the Linux download, build the MEX file on a Mac the
same as you would on a Linux configuration, and see how far you can get.

Looking at the Makefile for the Linux version, it appears to already
have support for building on 32-bit Mac (maci). There is a commented-out
line for pointing the MATLAB variable to R2007a, use that but change the
path to the version you are using (for example,
/Applications/MATLAB_R2009b.app).

If you are using 64-bit MATLAB on the Mac (maci64), adding support for
maci64 would be straightforward (copy/paste the maci section, use the
".maxmaci64" MEX extension, and make sure it's compiling and linking
with the 64-bit flag, "-arch x86_64"...).

You'll probably run into questions, but you can probably find or deduce
the answers on your own. Try contacting the authors for more help, or
posting here with specific questions. Good luck, and report back if you
are successful.

- Brian

Kasper Marstal wrote:
> Hello,
>
> I'm trying to integrate CUDA with Matlab on a Mac Pro. I want to install the plugin but when I go to http://developer.nvidia.com/object/matlab_cuda.html there is only linux and windows version. I can't find any info on what other mac users do to install plugin or if it is even possible to integrate CUDA natively with the MEX interface on OS X.
>
> Have you any experience with this issue?
>
> Thanks

Subject: NVDIA CUDA on MAC OS X

From: Kasper Marstal

Date: 26 Aug, 2009 09:04:04

Message: 3 of 3

Interesting stuff, I will look into it right away. Thank you so much Brian.

Cheers

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
cheers Kasper Marstal 26 Aug, 2009 05:09:03
osx Kasper Marstal 25 Aug, 2009 08:34:22
cuda Kasper Marstal 25 Aug, 2009 06:34:02
rssFeed for this Thread

Contact us at files@mathworks.com