MPI through mex and then MexCallMatlab

1 次查看(过去 30 天)
Hi All
I have a fortran program using MPI for parallel calculations. I have created a mex file that is called from a matlab object, and I use a mexCallMatlab call to interrogate a Matlab function. My problem is that the mexCallMatlab part really slows everything down. I don't want go down the route of compiling the matlab function into C (yet), hence was wondering if I can use the parallel capabilities.
My fortran function can use MPI for parallel calculations, and now I am not sure how I can still use the parallel capability, if at all. Do I need to open a matlabpool in Matlab as well for the mexCallMatlab function part?
I have never tried to do this. Any help would be appreciated.
Etienne

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Write C Functions Callable from MATLAB (MEX Files) 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by