C An Error of mpirun

Hi,


I installed openmpi (version 4.0.0), namely mpicc, mpicxx and mpirun, via package from official site of openmpi. When compiling with mpicc it's okay. But error occurs when I try to run the resulted executable binary file with mpirun. The error is:
Code:
    All nodes which are allocated for this job are already filled.



I also tried it on CentOS 7 platform, there is no error.


The source code is:
Code:
#include <stdio.h>
#include <mpi.h>

int main(int argc, char **argv)
{

  int node;
  MPI_Init(&argc,&argv);
  MPI_Comm_rank(MPI_COMM_WORLD,&node);

  printf("Hello world form Node %d\n",node);

  MPI_Finalize();

  return 0;

}

I would appreciate it if you can help me solve this problem. Thank you!

RH.
 
Last edited by a moderator:
Back
Top