Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] execuation time is not stable with 2 processes
From: Eugene Loh (eugene.loh_at_[hidden])
Date: 2010-08-04 11:40:00

Tad Lake wrote:

>I run it :
> mpirun -np 2 --host node2 ./a.out
>But the result of time is not stable with difference of 100 times. For example, the max value of time can be 3000, meanwhile the min is 100.
Again, know what results to expect. Is 3000 a reasonable time and 100
too fast? Or, is 100 a reasonable time and 3000 too slow? Or other?
The expected result should depend on the number of messages (2000), the
size of a message (40Kbyte), and the interconnect (apparently shared
memory even though you have openib). 2000 messages should take at least
thousands of microseconds and when the messages are 40 Kbyte each even

Try running the timing loop multiple times per program invocation and
using MPI_Wtime() for your timer.