MPI through mex and then MexCallMatlab

2 visualizaciones (últimos 30 días)
Etienne Coetzee
Etienne Coetzee el 3 de Sept. de 2013
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

Respuestas (0)

Categorías

Más información sobre Fortran with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by