Hi,

I have a quick question regarding OpenCL and mex files. Mex files are type of files that are used in Matlab to interface your C/CPP code to Matlab. I know it is not a Matlab forum but I thought may be some of you might have already tried doing it so would be kind enough to share your experiences.

Suppose I write a gateway function to interface a cpp code that is using some OpenCL calls. Then would I be able to run the mex file without any problem given that Matlab part is not using OpenCL? In other words does gateway function work as a isolator between CPP world and Matlab world?

thanks,

newbie

You can run without any problem. I am able to port MatrixMulImage and MonteCarloAsian using mex files and called from Matlab.