cc_staff
823
edits
(Updated instructions for Matlab 2022a) |
(Updated instructions for Matlab 2022a) |
||
Line 250: | Line 250: | ||
<!--T:49--> | <!--T:49--> | ||
Then: | Then: | ||
# Open the '''independentSubmitFcn.m''' file; around line # | # Open the '''independentSubmitFcn.m''' file; around line #117 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 # | # Open the '''communicatingSubmitFcn.m''' file; around line #126 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> | ||
# Open the '''communicatingJobWrapper.sh''' file; around line #20 (after the copyright statement), add the following command and adjust the module version to your local Matlab version:</p><p><tt>module load matlab/ | # Open the '''communicatingJobWrapper.sh''' file; around line #20 (after the copyright statement), add the following command and adjust the module version to your local Matlab version:</p><p><tt>module load matlab/2022a</tt></p> | ||
<!--T:50--> | <!--T:50--> | ||
Restart MATLAB and go back to your home directory: | Restart MATLAB and go back to your home directory: | ||
cd(getenv('HOME')) | cd(getenv('HOME')) # or cd(getenv('HOMEPATH')) on Windows | ||
== Validation == <!--T:47--> | == Validation == <!--T:47--> |