rsnt_translations
56,420
edits
No edit summary |
No edit summary |
||
Line 229: | Line 229: | ||
#:<code>parallel.cluster.generic.runProfileWizard()</code> | #:<code>parallel.cluster.generic.runProfileWizard()</code> | ||
# Give these responses to the configuration wizard: | # Give these responses to the configuration wizard: | ||
#* Select <b>Unix | #* Select <b>Unix</b> (which is usually the only choice) | ||
#* Shared location: <b>No | #* Shared location: <b>No</b> | ||
#* Cluster host: | #* Cluster host: | ||
#** For Béluga: <b>beluga.computecanada.ca | #** For Béluga: <b>beluga.computecanada.ca</b> | ||
#** For Narval: <b>narval.computecanada.ca | #** For Narval: <b>narval.computecanada.ca</b> | ||
#* 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: <b>/scratch | #* Remote job storage: <b>/scratch</b> | ||
#** Keep <i>Use unique subfolders</i> checked | #** Keep <i>Use unique subfolders</i> checked | ||
#* Maximum number of workers: <b>960 | #* Maximum number of workers: <b>960</b> | ||
#* Matlab installation folder for workers: both local and remote versions must match: | #* Matlab installation folder for workers: both local and remote versions must match: | ||
#** For local R2022a: <b>/cvmfs/restricted.computecanada.ca/easybuild/software/2020/Core/matlab/2022a | #** For local R2022a: <b>/cvmfs/restricted.computecanada.ca/easybuild/software/2020/Core/matlab/2022a</b> | ||
#* License type: <b>Network license manager | #* License type: <b>Network license manager</b> | ||
#* Profile Name: <b>beluga | #* Profile Name: <b>beluga</b> or <b>narval</b> | ||
# Click on <i>Create</i> and <i>Finish</i> to finalize the profile. | # Click on <i>Create</i> and <i>Finish</i> to finalize the profile. | ||
Line 250: | Line 250: | ||
<!--T:49--> | <!--T:49--> | ||
Then: | Then: | ||
# Open the <b>independentSubmitFcn.m | # Open the <b>independentSubmitFcn.m</b> file; around line #117 is the line <p> <code>additionalSubmitArgs = sprintf('--ntasks=1 --cpus-per-task=%d', cluster.NumThreads);</code> </p><p> Replace this line with</p><p> <code>additionalSubmitArgs = ccSBATCH().getSubmitArgs();</code></p> | ||
# Open the <b>communicatingSubmitFcn.m | # Open the <b>communicatingSubmitFcn.m</b> file; around line #126 is the line <p> <code>additionalSubmitArgs = sprintf('--ntasks=%d --cpus-per-task=%d', environmentProperties.NumberOfTasks, cluster.NumThreads);</code> </p><p> Replace this line with</p><p> <code>additionalSubmitArgs = ccSBATCH().getSubmitArgs();</code></p> | ||
# Open the <b>communicatingJobWrapper.sh | # Open the <b>communicatingJobWrapper.sh</b> file; around line #20 (after the copyright statement), add the following command and adjust the module version to your local Matlab version:</p><p><code>module load matlab/2022a</code></p> | ||
<!--T:50--> | <!--T:50--> | ||
Line 259: | Line 259: | ||
== Validation == <!--T:47--> | == Validation == <!--T:47--> | ||
<b>Do not | <b>Do not</b> use the built-in validation tool in the ''Cluster Profile Manager''. Instead, you should try the <code>TestParfor</code> example, along with a proper <code>ccSBATCH.m</code> script file: | ||
# Download and extract code samples on GitHub at https://github.com/ComputeCanada/matlab-parallel-server-samples. | # Download and extract code samples on GitHub at https://github.com/ComputeCanada/matlab-parallel-server-samples. | ||
# In MATLAB, go to the newly extracted <code>TestParfor</code> directory. | # In MATLAB, go to the newly extracted <code>TestParfor</code> directory. |