MATLAB: Difference between revisions

Jump to navigation Jump to search
no edit summary
mNo edit summary
No edit summary
Line 6: Line 6:


<!--T:54-->
<!--T:54-->
'''1) Running MATLAB directly''', but that requires a license. You may either:
<b>1) Running MATLAB directly</b>, but that requires a license. You may either
* Run MATLAB on [[Béluga/en| Béluga]], [[Cedar]] or [[Narval/en| Narval]], all of which have a license available for any student, professor or academic researcher.
* run MATLAB on [[Béluga/en| Béluga]], [[Cedar]] or [[Narval/en| Narval]], all of which have a license available for any student, professor or academic researcher.;
* Use an external license, i.e. one owned by your institution, faculty, department, or lab. See ''[[#Using_an_external_license|Using an external license]]'' below.
* use an external license, i.e., one owned by your institution, faculty, department, or lab. See <i>[[#Using_an_external_license|Using an external license]]</i> below.


<!--T:55-->
<!--T:55-->
'''2) Compiling your MATLAB code''' by using the MATLAB Compiler <tt>mcc</tt> and by running the generated executable file on any cluster. You can use this executable without license considerations.
<b>2) Compiling your MATLAB code</b> by using the MATLAB Compiler <code>mcc</code> and by running the generated executable file on any cluster. You can use this executable without license considerations.


<!--T:56-->
<!--T:56-->
Line 225: Line 225:
On your computer:
On your computer:
# Have MATLAB R2022a or newer installed, '''including the Parallel Computing Toolbox'''.
# Have MATLAB R2022a or newer installed, '''including the Parallel Computing Toolbox'''.
# Go to the [https://www.mathworks.com/matlabcentral/fileexchange/52807-parallel-computing-toolbox-plugin-for-matlab-parallel-server-with-slurm MathWorks Slurm Plugin page], '''download and run''' the <tt>*.mlpkginstall</tt> file. (i.e. click on the blue ''Download'' button on the right side, just above the ''Overview'' tab.)
# Go to the [https://www.mathworks.com/matlabcentral/fileexchange/52807-parallel-computing-toolbox-plugin-for-matlab-parallel-server-with-slurm MathWorks Slurm Plugin page], '''download and run''' the <tt>*.mlpkginstall</tt> file. (i.e., click on the blue ''Download'' button on the right side, just above the ''Overview'' 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
#:<tt>parallel.cluster.generic.runProfileWizard()</tt>
#:<tt>parallel.cluster.generic.runProfileWizard()</tt>
Line 234: Line 234:
#** For Béluga: '''beluga.computecanada.ca'''
#** For Béluga: '''beluga.computecanada.ca'''
#** For Narval: '''narval.computecanada.ca'''
#** For Narval: '''narval.computecanada.ca'''
#* Username (optional): Enter your Alliance username (the identity file can be set later, if needed)
#* Username (optional): Enter your Alliance username (the identity file can be set later if needed)
#* Remote job storage: '''/scratch'''
#* Remote job storage: '''/scratch'''
#** Keep ''Use unique subfolders'' checked
#** Keep ''Use unique subfolders'' checked
Line 245: Line 245:


== Edit the plugin once installed == <!--T:44-->
== Edit the plugin once installed == <!--T:44-->
In MATLAB, go to the <tt>nonshared</tt> folder (i.e. run the following in the MATLAB terminal):
In MATLAB, go to the <tt>nonshared</tt> folder (i.e., run the following in the MATLAB terminal):
  cd(fullfile(matlabshared.supportpkg.getSupportPackageRoot, 'parallel', 'slurm', 'nonshared'))
  cd(fullfile(matlabshared.supportpkg.getSupportPackageRoot, 'parallel', 'slurm', 'nonshared'))


rsnt_translations
56,420

edits

Navigation menu