OMPI v4.1.1-85-ga39a051fd8

% srun bash -c "cat /proc/self/status|grep Cpus_allowed_list"
Cpus_allowed_list:      58-59
Cpus_allowed_list:      106-107
Cpus_allowed_list:      110-111
Cpus_allowed_list:      114-115
Cpus_allowed_list:      16-17
Cpus_allowed_list:      36-37
Cpus_allowed_list:      54-55
...

% mpirun bash -c "cat /proc/self/status|grep Cpus_allowed_list"
Cpus_allowed_list:      0-127
Cpus_allowed_list:      0-127
Cpus_allowed_list:      0-127
Cpus_allowed_list:      0-127
Cpus_allowed_list:      0-127
Cpus_allowed_list:      0-127
Cpus_allowed_list:      0-127
...

Chang

On 10/10/21 9:39 AM, Ralph Castain via users wrote:
Could you please include (a) what version of OMPI you are talking about, and 
(b) the binding patterns you observed from both srun and mpirun?


On Oct 9, 2021, at 6:41 PM, Chang Liu via users <users@lists.open-mpi.org> 
wrote:

Hi,

I wonder if mpirun can follow the cpu binding settings from slurm, when running 
under the slurm environment.

Currently, in my tests, when I run

srun bash -c "cat /proc/self/status|grep Cpus_allowed_list"

I saw the correct binding set by salloc. When running

mpirun bash -c "cat /proc/self/status|grep Cpus_allowed_list"

The bindings are not correct.

Thanks,

Chang
--
Chang Liu
Staff Research Physicist
+1 609 243 3438
c...@pppl.gov
Princeton Plasma Physics Laboratory
100 Stellarator Rd, Princeton NJ 08540, USA



--
Chang Liu
Staff Research Physicist
+1 609 243 3438
c...@pppl.gov
Princeton Plasma Physics Laboratory
100 Stellarator Rd, Princeton NJ 08540, USA

Reply via email to