/usr/lib/mpich/bin/mpirun.p4shmem is in mpich-bin 1.2.7-10ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #! /bin/sh
exitstatus=1
if [ "$argsset" = "" ] ; then
. $MPIRUN_HOME/mpirun.args
argsset=1
fi
if [ -z "$p4pgfile" ] ; then
np=`expr $np - 1`
p4pgfile="$PWD_TRIAL/PI$$"
$Show echo "local $np $progname" > "$p4pgfile"
np=`expr $np + 1`
fi
$Show $progname $cmdLineArgs -p4pg "$p4pgfile"
exitstatus=$?
if [ $leavePGFile = 1 ] ; then
echo "P4 procgroup file is $p4pgfile"
else
$Show /bin/rm "$p4pgfile"
fi
|