openmpi - "mpirun was unable to launch the specified application as it could not find an executable" error -


i came across strage problem, worked doesn't.

i run openmpi program tau profiling among 2 computers. seems mpirun can't run tau_exec program on remote host, maybe it's permission issue?

 cluster@master:~/software/mpi_in_30_source/test2$ mpirun -np 2 --hostfile hostfile -d           tau_exec -v -t mpi,trace,profile ./hello.exe  [master:19319] procdir: /tmp/openmpi-sessions-cluster@master_0/4568/0/0  [master:19319] jobdir: /tmp/openmpi-sessions-cluster@master_0/4568/0  [master:19319] top: openmpi-sessions-cluster@master_0  [master:19319] tmp: /tmp  [slave2:06777] procdir: /tmp/openmpi-sessions-cluster@slave2_0/4568/0/1  [slave2:06777] jobdir: /tmp/openmpi-sessions-cluster@slave2_0/4568/0  [slave2:06777] top: openmpi-sessions-cluster@slave2_0  [slave2:06777] tmp: /tmp  [master:19319] [[4568,0],0] node[0].name master daemon 0 arch ff000200  [master:19319] [[4568,0],0] node[1].name slave2 daemon 1 arch ff000200  [slave2:06777] [[4568,0],1] node[0].name master daemon 0 arch ff000200  [slave2:06777] [[4568,0],1] node[1].name slave2 daemon 1 arch ff000200  [master:19319] info: setting debugger process table applications    mpir_being_debugged = 0    mpir_debug_state = 1    mpir_partial_attach_ok = 1    mpir_i_am_starter = 0    mpir_proctable_size = 2    mpir_proctable:      (i, host, exe, pid) = (0, master,      /home/cluster/software/mpi_in_30_source/test2/tau_exec, 19321)      (i, host, exe, pid) = (1, slave2,      /home/cluster/software/mpi_in_30_source/test2/tau_exec, 0)  --------------------------------------------------------------------------  mpirun unable launch specified application not find executable:   executable: tau_exec  node: slave2   while attempting start process rank 1.  --------------------------------------------------------------------------  [slave2:06777] sess_dir_finalize: job session dir not empty - leaving  [slave2:06777] sess_dir_finalize: job session dir not empty - leaving  [master:19319] sess_dir_finalize: job session dir not empty - leaving  [master:19319] sess_dir_finalize: proc session dir not empty - leaving  orterun: exiting status -123 

on slave2:

cluster@slave2:~/software/mpi_in_30_source/test2$ tau_exec -t mpi,trace,profile ./hello.exe hello mpi user: process = 0 on machine=slave2, of ncpu=1 processes cluster@slave2:~/software/mpi_in_30_source/test2$ tau_exec /home/cluster/tools/tau-2.22.2/arm_linux/bin/tau_exec 

so there working tau_exec on both nodes. when run mpirun without tau_exec works.

cluster@master:~/software/mpi_in_30_source/test2$ mpirun -np 2 --hostfile hostfile  ./hello.exe hello mpi user: process = 0 on machine=master, of ncpu=2 processes hello mpi user: process = 1 on machine=slave2, of ncpu=2 processes 

maybe because had installed openmpi , not mpich2, should run below commands root:

root~# update-alternatives --config mpirun

there 2 choices alternative mpirun (providing /usr/bin/mpirun).

selection | path | priority | status

  • *0 | /usr/bin/mpirun.openmpi | 50 | auto mode
  • 1 | /usr/bin/mpirun.mpich2 | 40 | manual mode
  • 2 | /usr/bin/mpirun.openmpi | 50 | manual mode

press enter keep current choice[*], or type selection number: 1

then should select mpich version, above, run normally.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -