Is it possible to use PARFOR in a compiled application on my parallel configuration?
33 views (last 30 days)
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: