Skip to content
Snippets Groups Projects
Commit 372e19c1 authored by Moe Jette's avatar Moe Jette
Browse files

correct example

parent 23ea5a66
No related branches found
No related tags found
No related merge requests found
...@@ -198,7 +198,7 @@ tasks. When using <span class="commandline">salloc</span> command, ...@@ -198,7 +198,7 @@ tasks. When using <span class="commandline">salloc</span> command,
<span class="commandline">mpirun</span>'s -nolocal option is recommended. <span class="commandline">mpirun</span>'s -nolocal option is recommended.
For example: For example:
<pre> <pre>
$ salloc -n4 # allocates four processors and spawns shell for job $ salloc -n4 sh # allocates four processors and spawns shell for job
&gt; mpirun -np 4 -nolocal a.out &gt; mpirun -np 4 -nolocal a.out
&gt; exit # exits shell spawned by initial salloc command &gt; exit # exits shell spawned by initial salloc command
</pre> </pre>
...@@ -226,7 +226,7 @@ the maximum number of tasks required for the job. Then execute the ...@@ -226,7 +226,7 @@ the maximum number of tasks required for the job. Then execute the
Do not directly execute the <span class="commandline">srun</span> command Do not directly execute the <span class="commandline">srun</span> command
to launch LAM/MPI tasks. For example: to launch LAM/MPI tasks. For example:
<pre> <pre>
$ salloc -n16 # allocates 16 processors and spawns shell for job $ salloc -n16 sh # allocates 16 processors and spawns shell for job
&gt; lamboot &gt; lamboot
&gt; mpirun -np 16 foo args &gt; mpirun -np 16 foo args
1234 foo running on adev0 (o) 1234 foo running on adev0 (o)
...@@ -348,6 +348,6 @@ $ sbatch -n16 mpich.sh ...@@ -348,6 +348,6 @@ $ sbatch -n16 mpich.sh
sbatch: Submitted batch job 1234 sbatch: Submitted batch job 1234
</pre> </pre>
<p style="text-align:center;">Last modified 21 May 2007</p> <p style="text-align:center;">Last modified 22 May 2007</p>
<!--#include virtual="footer.txt"--> <!--#include virtual="footer.txt"-->
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment