Niagara Quickstart: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 291: Line 291:
<ul>
<ul>
<li><p>Small test jobs can be run on the login nodes.</p>
<li><p>Small test jobs can be run on the login nodes.</p>
<p>Rule of thumb: couple of minutes, taking at most about 1-2GB of memory, couple of cores.</p></li>
<p>Rule of thumb: tests should run no more than a couple of minutes, taking at most about 1-2GB of memory, and use no more than a couple of cores.</p></li>
<li><p>You can run the the ddt debugger on the login nodes after <code>module load ddt</code>.</p></li>
<li><p>You can run the the ddt debugger on the login nodes after <code>module load ddt</code>.</p></li>
<li><p>Short tests that do not fit on a login node, or for which you need a dedicated node, request an<br />
<li><p>Short tests that do not fit on a login node, or for which you need a dedicated node, request an interactive debug job with the debug command:</p>
interactive debug job with the salloc command</p>
<source lang="bash">nia-login07:~$ salloc -pdebug --nodes N --time=1:00:00</source>
<p>where N  is the number of nodes. The duration of your interactive debug session can be at most one hour, can use at most 4 nodes, and each user can only have one such session at a time.</p>
Alternatively, on Niagara, you can use the command
<source lang="bash">nia-login07:~$ debugjob N</source>
<source lang="bash">nia-login07:~$ debugjob N</source>
where N is the number of nodes, If N=1, this gives an interactive session one 1 hour, when N=4 (the maximum), it give you 30 minutes.
<p>where N is the number of nodes, If N=1, this gives an interactive session one 1 hour, when N=4 (the maximum), it gives you 30 minutes.  Finally, if your debugjob process takes more than 1 hour, you can request an interactive job from the regular queue using the salloc command.  Note, however, that this may take some time to run, since it will be part of the regular queue, and will be run when the scheduler decides.
<source lang="bash">nia-login07:~$ salloc --nodes N --time=M:00:00</source>
here N is again the number of nodes, and M is the number of hours you wish the job to run.
If you need to use graphics while testing your code through salloc, e.g. when using a debugger such as DDT or DDD, you have the following options, please visit the [https://docs.scinet.utoronto.ca/index.php/Testing_With_Graphics Testing with graphics] page.
</li></ul>
</li></ul>


cc_staff
290

edits