MATLAB: Difference between revisions

Jump to navigation Jump to search
339 bytes added ,  4 years ago
Two files need to be modified
No edit summary
(Two files need to be modified)
Line 235: Line 235:


== Edit the plugin once installed == <!--T:44-->
== Edit the plugin once installed == <!--T:44-->
# In MATLAB, go to the <tt>nonshared</tt> folder:
In MATLAB, go to the <tt>nonshared</tt> folder (i.e. run the following in the MATLAB terminal):
#:{{Command|cd(fullfile(matlabshared.supportpkg.getSupportPackageRoot, 'parallel', 'slurm', 'nonshared'))}}
cd(fullfile(matlabshared.supportpkg.getSupportPackageRoot, 'parallel', 'slurm', 'nonshared'))
# Open the <tt>independentSubmitFcn.m</tt> file; around line #97 is the line <p> <tt>additionalSubmitArgs = sprintf('--ntasks=1 --cpus-per-task=%d', cluster.NumThreads);</tt> </p><p> Replace this line with</p><p> <tt>additionalSubmitArgs = ccSBATCH().getSubmitArgs();</tt></p>
 
# Restart MATLAB and go back to your home directory:
Then:
:{{Command|cd(getenv('HOME'))}}
# Open the '''independentSubmitFcn.m''' file; around line #97 is the line <p> <tt>additionalSubmitArgs = sprintf('--ntasks=1 --cpus-per-task=%d', cluster.NumThreads);</tt> </p><p> Replace this line with</p><p> <tt>additionalSubmitArgs = ccSBATCH().getSubmitArgs();</tt></p>
# Open the '''communicatingSubmitFcn.m''' file; around line #103 is the line <p> <tt>additionalSubmitArgs = sprintf('--ntasks=%d --cpus-per-task=%d', environmentProperties.NumberOfTasks, cluster.NumThreads);</tt> </p><p> Replace this line with</p><p> <tt>additionalSubmitArgs = ccSBATCH().getSubmitArgs();</tt></p>
 
Restart MATLAB and go back to your home directory:
cd(getenv('HOME'))


== Validation == <!--T:47-->
== Validation == <!--T:47-->
cc_staff
823

edits

Navigation menu