Hi!
I am running MPI rank test using srun and all processes think that they are
rank 0.
* slurm 14.11.0-pre1
* openmpi-1.8.1
Any ideas what's wrong?
Regards,
Alex
With that little info, no - you haven't told us anything. How are you running
this "rank test", how was OMPI configured, etc?
On Jul 7, 2014, at 6:21 AM, Alexander Frolov wrote:
> Hi!
>
> I am running MPI rank test using srun and all processes think that they are
> rank 0.
>
> * slurm 14.11
Ok, sorry. Here is the details:
---
hello.c
---
#include
#include
#include
int main(int argc, char **argv)
{
int myrank;
struct utsname unam;
MPI_Init(&argc, &argv);
uname(&unam);
MPI_Comm_rank(MPI_COMM_WORLD, &myrank);
printf("Hello from rank %d on host %s\n", myrank, unam.nodename);
MPI_Fin
Okay, the problem is that you didn't configure OMPI to use PMI, and then ran
your application using "direct launch" - i.e., starting it with srun instead of
mpirun. So there is no way for the procs to obtain any information like their
rank.
You need to add this to your OMPI configure line:
--w
Thank you! Now it works.
On Mon, Jul 7, 2014 at 5:39 PM, Ralph Castain wrote:
> Okay, the problem is that you didn't configure OMPI to use PMI, and then
> ran your application using "direct launch" - i.e., starting it with srun
> instead of mpirun. So there is no way for the procs to obtain any