79176147

Date: 2024-11-11 01:34:02
Score: 2
Natty:
Report link

When you use mpirun -np 3 . /foo, MPI creates 3 processes for your program, each running on a separate core. Even if your system has multiple cores, MPI may assign multiple processes to cores on the same CPU, not necessarily on different CPUs. Each core is like a mini-processor that can handle tasks independently. For example, if you have 1 CPU with 4 cores, you could run up to 4 tasks concurrently on those cores. With -np 3, MPI distributes your processes across available cores, but not necessarily on different CPUs.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When you use
  • Low reputation (1):
Posted by: Christian Peña Granillo