MATLAB: Difference between revisions

Jump to navigation Jump to search
28 bytes removed ,  1 year ago
Configuration problem for Parallel Server
No edit summary
(Configuration problem for Parallel Server)
Line 217: Line 217:


= Using the MATLAB Parallel Server = <!--T:41-->
= Using the MATLAB Parallel Server = <!--T:41-->
MATLAB Distributed Computing Server (MDCS) became MATLAB Parallel Server in the recent years. This technology is only worthwhile if you need more workers in your parallel MATLAB job than available CPU cores on a single compute node. While the regular MATLAB installation (see above sections) allows you to run parallel jobs within one node (up to 64 workers per job, depending on which node and cluster), the MATLAB Parallel Server is the licensed MathWorks solution for running a parallel job on more than one node. For the moment, the use of the MATLAB Parallel Server is only supported on the [[Béluga/en | Béluga]] and [[Narval/en | Narval]] clusters.
MATLAB Parallel Server is only worthwhile '''if you need more workers in your parallel MATLAB job than available CPU cores on a single compute node'''. While a regular MATLAB installation (see above sections) allows you to run parallel jobs within one node (up to 64 workers per job, depending on which node and cluster), the MATLAB Parallel Server is the licensed MathWorks solution for running a parallel job on more than one node.


<!--T:42-->
<!--T:42-->
This solution allows the submission of MATLAB parallel jobs from a local MATLAB interface on your computer. Some configuration is required in order to submit jobs remotely to the Slurm scheduler. Please follow instructions in the sections below.
This solution usually works by submitting MATLAB parallel jobs from a local MATLAB interface on your computer. '''Since May 2023, some mandatory security improvements have been implemented on all clusters. Because MATLAB uses an SSH mode that is no longer permitted, job submission from a local computer is no longer possible until MATLAB uses a new connection method. There is actually no workaround.'''


== Slurm plugin for MATLAB == <!--T:43-->
== Slurm plugin for MATLAB == <!--T:43-->
On your computer:
'''The below procedure no longer works because the Slurm plugin is no longer available and because of the above SSH issue.''' The configuration steps are kept until a workaround is found:
# Have MATLAB R2022a or newer installed, <b>including the Parallel Computing Toolbox</b>.
# Have MATLAB R2022a or newer installed, <b>including the Parallel Computing Toolbox</b>.
# Go to the [https://www.mathworks.com/matlabcentral/fileexchange/52807-parallel-computing-toolbox-plugin-for-matlab-parallel-server-with-slurm MathWorks Slurm Plugin page], <b>download and run</b> the <code>*.mlpkginstall</code> file. (i.e., click on the blue <i>Download</i> button on the right side, just above the <i>Overview</i> tab.)
# Go to the MathWorks Slurm Plugin page, <b>download and run</b> the <code>*.mlpkginstall</code> file. (i.e., click on the blue <i>Download</i> button on the right side, just above the <i>Overview</i> tab.)
# Enter your MathWorks credentials; if the configuration wizard does not start, run in MATLAB
# Enter your MathWorks credentials; if the configuration wizard does not start, run in MATLAB
#:<code>parallel.cluster.generic.runProfileWizard()</code>
#:<code>parallel.cluster.generic.runProfileWizard()</code>
cc_staff
823

edits

Navigation menu