Author Topic: mpi and if processIsMaster()  (Read 4886 times)

0 Members and 1 Guest are viewing this topic.

Offline esp

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 318
  • Country: us
  • Reputation: 3
    • View Profile
    • University of Minnesota
mpi and if processIsMaster()
« on: July 12, 2012, 03:53 »
i am running a simple test script using mpi, where the script says:
Code
if processIsMaster():
  print "master"
else:
  print "slave"
I set it up for 4 nodes of 8 processors each, and after running it printed master 32 times .. what does it mean? I ran as below:
Code
module load intel
module load pmpi/intel
mpirun -np 32 $ATK_BIN_DIR/atkpython $SRC_DIR/$SCRIPT1   ..otherstuff..
« Last Edit: July 12, 2012, 03:54 by esp »

Offline esp

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 318
  • Country: us
  • Reputation: 3
    • View Profile
    • University of Minnesota
Re: mpi and if processIsMaster()
« Reply #1 on: July 12, 2012, 04:12 »
sorry this is more appropriat for the installation section, it will not let me delete it

Offline Nordland

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 812
  • Reputation: 18
    • View Profile
Re: mpi and if processIsMaster()
« Reply #2 on: July 12, 2012, 06:37 »
It means that it is not running in parallel.

Offline esp

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 318
  • Country: us
  • Reputation: 3
    • View Profile
    • University of Minnesota
Re: mpi and if processIsMaster()
« Reply #3 on: July 12, 2012, 06:55 »
and this?

MPI Application rank 3 exited before MPI_Init() with status 0

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5576
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: mpi and if processIsMaster()
« Reply #4 on: July 12, 2012, 11:54 »
The first issue, about several "master" statements, means that you are most likely not using MPICH2, but rather some other MPI library like OpenMPI. ATK only works with MPICH2 and compatible libs, like Intel MPI or MVAPICH2.

Until that is fixed, the second error is perhaps not relevant.

Offline esp

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 318
  • Country: us
  • Reputation: 3
    • View Profile
    • University of Minnesota
Re: mpi and if processIsMaster()
« Reply #5 on: July 12, 2012, 18:54 »
ok thank you

i did check with the admin people who run the machines, they said:

"Things have changed. One major one is the OS, from SLES to CetOS.
Please recompile your code inc needed libraries and run the job."

I have never heard of these OS, my understanding was that the machines were linux ... i will see what i can find out, or if i can install mpich myself .. they have the following MPI implementations already installed:


Compiler  Platform MPI  OpenMPI   Intel MPI
Intel    intel pmpi/intel    intel ompi/intel    intel impi/intel
GNU    gcc pmpi/gnu    gcc ompi/gnu    gcc impi/gnu

i will look into it thank you
« Last Edit: July 12, 2012, 19:51 by esp »

Offline esp

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 318
  • Country: us
  • Reputation: 3
    • View Profile
    • University of Minnesota
Re: mpi and if processIsMaster()
« Reply #6 on: July 12, 2012, 20:04 »
yes although i did use their implementations before without issue, now i have issues, and i installed mpich2 myself, and it seems to be working, thank you

Offline esp

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 318
  • Country: us
  • Reputation: 3
    • View Profile
    • University of Minnesota
Re: mpi and if processIsMaster()
« Reply #7 on: July 12, 2012, 20:12 »
the admins are telling me for mpi needs i need to use openmpi .. i try but it is not running in parallel .. am i correct ATK will not work with openmpi?

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5576
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: mpi and if processIsMaster()
« Reply #8 on: July 13, 2012, 12:01 »
That is correct, ATK only works with MPICH2 and its "derivatives", like Intel MPI and MVAPICH2 (those are the ones we have tested with, but there are other ones too).