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

validate mpich1_shmem logic

parent 06c96195
No related branches found
No related tags found
No related merge requests found
...@@ -324,8 +324,8 @@ for more information.</p> ...@@ -324,8 +324,8 @@ for more information.</p>
<p><a href="http://www-unix.mcs.anl.gov/mpi/mpich1/"><b>MPICH1</b></a> <p><a href="http://www-unix.mcs.anl.gov/mpi/mpich1/"><b>MPICH1</b></a>
has several different programming models. If you are using the shared has several different programming models. If you are using the shared
memory model (DEFAULT_DEVICE=ch_shmem in the mpirun script), then memory model (<i>DEFAULT_DEVICE=ch_shmem</i> in the mpirun script), then
initiated the tasks using the <span class="commandline">srun</span> command initiate the tasks using the <span class="commandline">srun</span> command
with the <i>--mpi=mpich1_shmem</i> option.</p> with the <i>--mpi=mpich1_shmem</i> option.</p>
<pre> <pre>
$ srun -n16 --mpi=mpich1_shmem a.out $ srun -n16 --mpi=mpich1_shmem a.out
...@@ -333,7 +333,7 @@ $ srun -n16 --mpi=mpich1_shmem a.out ...@@ -333,7 +333,7 @@ $ srun -n16 --mpi=mpich1_shmem a.out
<p>Other MPICH1 programming models current rely upon the SLURM <p>Other MPICH1 programming models current rely upon the SLURM
<span class="commandline">salloc</span> or <span class="commandline">salloc</span> or
<span class="commandline">sbatch</span> command to allocate. <span class="commandline">sbatch</span> command to allocate resources.
In either case, specify the maximum number of tasks required for the job. In either case, specify the maximum number of tasks required for the job.
You will then need to build a list of hosts to be used and use that You will then need to build a list of hosts to be used and use that
as an argument to the mpirun command. as an argument to the mpirun command.
......
...@@ -83,7 +83,7 @@ int p_mpi_hook_slurmstepd_task(const mpi_plugin_task_info_t *job, ...@@ -83,7 +83,7 @@ int p_mpi_hook_slurmstepd_task(const mpi_plugin_task_info_t *job,
char ***env) char ***env)
{ {
debug("Using mpi/mpich1_shmem"); debug("Using mpi/mpich1_shmem");
env_array_overwrite_fmt(env, "MPIRUN_NP", "%u", job->ntasks); env_array_overwrite_fmt(env, "MPICH_NP", "%u", job->ntasks);
return SLURM_SUCCESS; return SLURM_SUCCESS;
} }
......
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