What exactly is the third parameter in the following MPI command

mpiexec -n 2 cpi

Is it no. of cores? So if I am running on Pentium 4 , shall I make it 1?

有帮助吗?

解决方案

  • -n 2: spawn two processes.
  • cpi: the executable.

Experiment with what is faster, one or two or more processes. Some codes run best with one process per core, some codes benefit from oversubscription.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top