문제

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