cc_staff
823
edits
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 (i.e. run the following in the MATLAB terminal): | |||
cd(fullfile(matlabshared.supportpkg.getSupportPackageRoot, 'parallel', 'slurm', 'nonshared')) | |||
# Open the <tt> | |||
Then: | |||
# 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--> |