Evaluate a matlab function handle with jacket on the GPU

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

Moderator: pavanky

Evaluate a matlab function handle with jacket on the GPU

Postby ölig » Sat May 07, 2011 4:05 am

Hey there,
I pass a function handle when calling my mex-function and want to evaluate it for many many different input-parameters. Currently I do it like that:

mxArray* y;
const mxArray *e[2] = {functionHandle, point};
mexCallMATLAB(1, &y, 2, (mxArray **)e, "feval");

which uses feval from matlab to evaluate the function handle and thus this is being executed on the CPU. Is there a way with jacket (preferably jacket lib for C++) to evaluate the matlab function handle on the GPU to parallelize the evaluation?
thanks!
ölig
 
Posts: 11
Joined: Thu Jan 20, 2011 2:58 pm

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

cron