mex setup for openMP using Intel parallel_studio_xe?
Ältere Kommentare anzeigen
I have successfully used openMP in FORTRAN code compiled previously as mex files under gfortran (having edited the mex.sh file appropriately). I have now updated to the latest versions of matlab and Intel parallel_studio_xe. I can compile and execute mex files. However, the openMP parallelization is not happening. Can anyone tell me the required modifications of the mex setup that will provide the correct compiler and linker options?
Antworten (1)
James Tursa
am 20 Nov. 2017
0 Stimmen
How do you currently do the compile? Have you added the appropriate OpenMP directive to the mex compiler options? E.g., see this link for the directive (looks like it is /qopenmp or /Qopenmp):
3 Kommentare
Michael Brown
am 21 Nov. 2017
James Tursa
am 21 Nov. 2017
Does it need to be -qopenmp instead of -openmp?
Is there a COMPFLAGS line in your setup files?
Michael Brown
am 21 Nov. 2017
Bearbeitet: Walter Roberson
am 21 Nov. 2017
Kategorien
Mehr zu Write C Functions Callable from MATLAB (MEX Files) finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!