2 # debug mode display informations about communication
3 if $1 == "--debug" then
8 # get pid of ompi-server
9 setenv OMPI_URI_FILE ${HOME}/.urifile_$$
10 set lpid1=`pidof ompi-server`
11 ompi-server -r ${OMPI_URI_FILE}
12 set lpid2=`pidof ompi-server`
25 # launch two instances of executable to create communication between both
26 mpirun -np 2 -ompi-server file:${OMPI_URI_FILE} ${KERNEL_ROOT_DIR}/bin/salome/testMPI2 -vsize 32 $debug &
27 mpirun -np 3 -ompi-server file:${OMPI_URI_FILE} ${KERNEL_ROOT_DIR}/bin/salome/testMPI2 -vsize 32 $debug
33 rm -f ${OMPI_URI_FILE}