From 13b0545e9d9f564e5fb129f3a56ee15ffda16ad8 Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Thu, 26 Feb 2009 20:17:35 +0000 Subject: [PATCH] Change format of MpiParams configuration from ports:#-# to ports=#-# --- doc/html/mpi_guide.shtml | 2 +- doc/man/man5/slurm.conf.5 | 2 +- src/slurmctld/port_mgr.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/html/mpi_guide.shtml b/doc/html/mpi_guide.shtml index 0793b24e82d..51385ef2ac4 100644 --- a/doc/html/mpi_guide.shtml +++ b/doc/html/mpi_guide.shtml @@ -66,7 +66,7 @@ It relies upon SLURM version 2.0 (or higher) managing reservations of communication ports for the Open MPI's use. Specify the range of ports to be reserved in the <i>slurm.conf</i> file using the <i>MpiParams</i> parameter. -For example: <i>MpiParams=ports:12000-12999</i>. +For example: <i>MpiParams=ports=12000-12999</i>. Then launch tasks using the <span class="commandline">srun</span> command plus the option <i>--resv-ports</i>. The ports reserved on every allocated node will be identified in an diff --git a/doc/man/man5/slurm.conf.5 b/doc/man/man5/slurm.conf.5 index cf6af901333..a04d15f7db4 100644 --- a/doc/man/man5/slurm.conf.5 +++ b/doc/man/man5/slurm.conf.5 @@ -654,7 +654,7 @@ LAM MPI and Open MPI). \fBMpiParams\fR MPI parameters. Used to identify ports used by OpenMPI only and the input format is -"ports:1000-1234" to identify a range of communcation ports to be used. +"ports=12000\-12999" to identify a range of communcation ports to be used. .TP \fBOverTimeLimit\fR diff --git a/src/slurmctld/port_mgr.c b/src/slurmctld/port_mgr.c index cb228ebfe83..e55dadbcf58 100644 --- a/src/slurmctld/port_mgr.c +++ b/src/slurmctld/port_mgr.c @@ -164,7 +164,7 @@ extern int reserve_port_config(char *mpi_params) int i, p_min, p_max; if (mpi_params) - tmp_p = strstr(mpi_params, "ports:"); + tmp_p = strstr(mpi_params, "ports="); if (tmp_p == NULL) { if (port_resv_table) { info("Clearing port reservations"); -- GitLab