Is it possible to use PARFOR in a compiled application on my parallel configuration?

33 views (last 30 days)
I would like to know if it is possible to compile an application that uses PARFOR and is to be run on parallel configurations other than local.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 15 Nov 2021
Edited: MathWorks Support Team on 16 Nov 2021
Applications using PARFOR can be compiled to run on parallel configurations other than local. Parallel configuration information can be stored in a MAT file. This MAT file can be included with the executable at compile time, or provided with the option -MCRUSERDATA at runtime (see detailed information further below).
You can find instructions on how to export a MAT file containing the parallel configuration information at the following link:
Compile and Deploy a Standalone Application with the Parallel Computing Toolbox
In order to be able to run the standalone on a target machine and have it use the cluster, MATLAB Parallel Server is required.
Once the executable and the MAT file have been given to the end user, the user can make use of the cluster by calling the executable with the -MCRUSERDATA flag as in the following code:
parallelapp.exe -mcruserdata ParallelConfigurationFile:config.mat
The documentation for what needs to occur on the user's end is discussed at the following link:
  1 Comment
Dr. Seis
Dr. Seis on 17 Jun 2016
This looks like it could be very useful for what I am doing now - can the Mathworks Support Team update the broken links?

Sign in to comment.

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!