Is MPI Library available for MATLAB like it is available for C or Fortran?

8 views (last 30 days)
S Ban
S Ban on 22 Dec 2020
Edited: James Tursa on 22 Dec 2020
What i want to know is whether the API's for parallel computing like Open MP and MPI available for MATLAB too like they are available for C or Fortran? If available, are the libraries avaialble in the default full installation of MATLAB or they have to be separately paid and bought?
  1 Comment
James Tursa
James Tursa on 22 Dec 2020
Many of the linear algebra operations in MATLAB are already multi-threaded in the background. For large scale parallel processing, the closest thing would be the Parallel Toolbox (separate purchase) which starts multiple MATLAB processes in the background.

Sign in to comment.

Answers (1)

Bruno Luong
Bruno Luong on 22 Dec 2020
No OpenMP is available for C and Fortran, using pragma/directive for compiled programing language on fix-variable type, with rigourous variable declaration on a scope.
Matlab has none of that, it's even not a serious programming language.
That having said you can buy parallel toolbox, and nothing prevent you to plug-in C/Fortran using OpenMP.
I don't know MPI to comment.




Community Treasure Hunt

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

Start Hunting!