Compile ArrayFire C++ code with Matlab MEX

[Old posts from the commercial version of ArrayFire] Discussion of ArrayFire using CUDA or OpenCL.

Moderator: pavanky

Compile ArrayFire C++ code with Matlab MEX

Postby danielpengzuo » Mon Jan 27, 2014 10:47 pm

Hi,

I am using Ubuntu 12.04 64-bit and I have a C++ program that uses ArrayFire.
I need to port this C++ program into Matlab and compile it with MEX.
I got the message "hello_world.cpp:2:23: fatal error: arrayfire.h: No such file or directory
compilation terminated."

What is the right way to configure mex to compile in my case?
Thanks!

Daniel
danielpengzuo
 
Posts: 10
Joined: Mon Jan 27, 2014 10:43 pm

Re: Compile ArrayFire C++ code with Matlab MEX

Postby pavanky » Thu Jan 30, 2014 1:28 pm

Can you paste the code and the compile command you are using ?
Pavan Yalamanchili,
ArrayFire
--
~ If it is not broken, you have not tried hard enough ~
User avatar
pavanky
Site Admin
 
Posts: 1123
Joined: Mon Mar 15, 2010 7:39 pm
Location: Atlanta, GA


Return to [archive-commercial] Programming & Development with ArrayFire

cron