LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: David Cronk (cronk_at_[hidden])
Date: 2008-05-31 22:39:29


SCIPIONI Roberto wrote:

>One of the basic functions in MPI is
>
>MPI_COMM_RANK
>
>by calling it the program knows how many tasks are available
>
>call MPI_COMM_RANK(MPI_COMM_WORLD,rank,ierr)
>
>write(",")'the rank is',rank
>
>
>
No. MPI_Comm_rank tells a process what its particular rank is within
the current execution. MPI_Comm_size tells a process how many processes
there are for a particular execution. There is no theoretical limit on
the number of processes that can exist. universe_size may (depending on
the MPI implementation) give some information about how many processes
may be practical.

I hope this helps.

Dave.

>does it make sense ?
>
>
>R.
>
>
>
>
>
>
>
>>I have a question about MPI Rank.
>>How can MPI Rank determine how many process a computer can have?
>>
>>A life without knowing anything is not a life at all.
>>
>>Live your life with your own decision so you will never regret
>>what you have done when you look back.
>>
>>
>>
>>_______________________________________________
>>This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>>
>>
>>
>_______________________________________________
>This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
>