LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: vidya kotamraju (vidya_kotamraju_at_[hidden])
Date: 2002-09-20 04:04:41


hi all,
I have written a DO loop in FORTRAN(making use of MPI)
that calculates the sum of N given numbers(calculates
the sum of 1 to N numbers.).
i hv given N = 5 million and ran the program.
I am making use of 8 uniprocessor homogeneous Linux
machines to test and find the optimal output..
So the test involves :the number of machines being
used ranging from 1 to 8 and the number of processes
ranging from 2 to 80.
I have come to the conclusion that the least time
taken is when the number of processes is equal to the
number of machines ie processors being used.(and time
taken isthe least when maximum number of machines are
being used)
But i was assuming that as the number of processes
increase,the time taken for the calculation
reduces.(cause LAM allows one to spawn several
processes on one machine)..Why doesnt this happen ?
Does it mean that whatever DO loop i might run,i will
get the best output when the number of processes =
number of uniprocessor machines ?
What happens in case of multiprocessors ?
Can someone clarify this ?
I need a reply asap as i hv a submission regarding the
same.
regards,
Vidya Kotamraju

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
_______________________________________________
This list is archived at http://www.lam-mpi.org/MailArchives/lam/