[OMPI users] slot number calculation when no config files?

2020-06-08 Thread David Mathog via users
Using OpenMPI 4.0.1 and no configuration files of any kind on a linux machine which shows 4 CPUS and 2 threads per CPU. When this is run: mpirun --allow-run-as-root --oversubscribe -np 3 /usr/common/modules/el8/x86_64/software/q6/6.0.1-CentOS-vanilla/bin/qdynp eq2.inp it works and the expected 3

Re: [OMPI users] slot number calculation when no config files?

2020-06-08 Thread Collin Strassburger via users
Hello David, The slot calculation is based on physical cores rather than logical cores. The 4 CPUs you are seeing there are logical CPUs. And since your processor has 2 threads per core, you have two physical cores; yielding a total of 4 logical cores (which is reported to lscpu). On machine

Re: [OMPI users] slot number calculation when no config files?

2020-06-08 Thread Ralph Castain via users
Note that you can also resolve it by adding --use-hwthread-cpus to your cmd line - it instructs mpirun to treat the HWTs as independent cpus so you would have 4 slots in this case. > On Jun 8, 2020, at 11:28 AM, Collin Strassburger via users > wrote: > > Hello David, > > The slot calculatio

Re: [OMPI users] slot number calculation when no config files?

2020-06-08 Thread David Mathog via users
So default slots = "CPU"s/2 but there is some leeway in what is considered to be a CPU? So far I have not found the actual formula documented anywhere. Thanks, David Mathog On Mon, Jun 8, 2020 at 11:37 AM Ralph Castain via users wrote: > > Note that you can also resolve it by adding --use-h

Re: [OMPI users] slot number calculation when no config files?

2020-06-08 Thread Collin Strassburger via users
The default number of slots is the number of physical cores; overall, this tends to yield the best performance. Most of the time, a "CPU" is a logical core. A processor with hyper-threading (or SMT (simultaneous multi-threading)) will be counted as two(+) logical processors. I hope this helps