Author Topic: password required when runned in mpiexec  (Read 11401 times)

0 Members and 1 Guest are viewing this topic.

Offline dhurba

  • Heavy QuantumATK user
  • ***
  • Posts: 48
  • Country: in
  • Reputation: 0
    • View Profile
password required when runned in mpiexec
« on: July 20, 2012, 11:46 »
when i try to run a script using
Code
mpiexec -n 2 -machinefile mymachinefile $ATK_BIN_DIR/atkpython script.py > script.log
it asks for password every time and of all the three other machines. is there any way to disable the password .i am using a redhat cluster

Offline Nordland

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 812
  • Reputation: 18
    • View Profile
Re: password required when runned in mpiexec
« Reply #1 on: July 20, 2012, 12:55 »
The best way is to generated passphraseless SSH key and using that logging into your machines.

It works really for me.

Offline dhurba

  • Heavy QuantumATK user
  • ***
  • Posts: 48
  • Country: in
  • Reputation: 0
    • View Profile
Re: password required when runned in mpiexec
« Reply #2 on: July 23, 2012, 14:06 »
Yes i have managed to combine all the computer together without ssh password...
But when i run any script i have observed that only one server is in use .that server is the one which is on the first in the machine file

for example

if my machine file is

quantum.xxx.xx
vlsi1.xxx.xx
vlsi2.xxx.xx

quantum takes away all the 3 slave licenses including the master.

same thing if i place 'vlsi1' at the top

please say if i am making any mistake ..



Offline Nordland

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 812
  • Reputation: 18
    • View Profile
Re: password required when runned in mpiexec
« Reply #3 on: July 23, 2012, 19:49 »
Then your MPI setup is not working correctly.

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5576
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: password required when runned in mpiexec
« Reply #4 on: July 23, 2012, 21:43 »
Try "-npernode 1" as argument to mpiexec. Not all versions support it, however. It means one process per node, instead of stacking them. Otherwise, you may need to specify in the machinefile how many processes it is allowed to put on each node; if each node has several cores, it may figure that out and try to put as many processes as cores (or sockets). When experimenting, you can use something simpler than ATK (to make it faster, by avoiding the license check), for instance
Code
mpiexec -n 32 -machinefile machinefile echo $HOSTID
Then you can also test how high you need -n to be before it starts using other nodes, if this is 4 or 8 or another number matching the core count, it would confirm my suspicion above, and you would need to edit the machinefile a bit.