openmpi - Open MPI + Scalasca :Can not run mpirun command with option --prefix -


i have installed scalasca(scorep,cube,..)with open mpi peformance measurement . when add option : " --prefix = /my-path" mpirun, "scalasca - analyze" can not executed ( aborted ) .
command :
scalasca -analyze mpirun -np 1 --host localhost --prefix /home/as/lib/bin /home/as/documents/a.out
"/home/as/lib" installed open mpi directory.
, error :
s=c=a=n: abort: target executable/home/as/lib/bin' directory!`
if without "--prefix" , runs .but need "-- prefix" option run on cluster.
have installed open mpi on of cluster machines same path (/home/as/lib) .
how fix it???

open mpi adds implicit --prefix option if orterun (or of symlinks mpirun, mpiexec, etc.) called full path. in other words:

$ /home/as/lib/bin/mpirun ... 

is equivalent to:

$ mpirun --prefix /home/as/lib ... 

if really need pass --prefix option, e.g. because open mpi installed on cluster nodes in different directory on front-end node, quote entire parameter:

$ scalasca -a mpirun -np 1 --host localhost "--prefix /home/as/lib" /path/to/execuable 

the same applies other parameter mpirun. quote them all, on safe side:

$ scalasca -a mpirun "-np 1" "--host localhost" "--prefix /home/as/lib" /path/to/execuable 

hint: when building own version of open mpi, --enable-orterun-prefix-by-default. way --prefix added automatically when orterun/mpirun/mpiexec not called full path it. also, --enable-wrapper-rpath choice of build option, prevent clashes other versions of library.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -