From 5dd35641c003ed5efcfcb1f3e084f26d59235c9f Mon Sep 17 00:00:00 2001 From: Enol Fernandez <enolfc@ifca.unican.es> Date: Thu, 26 Sep 2013 13:35:32 +0200 Subject: [PATCH] Use the already defined OSC_MPIEXEC var. --- modules/hooks/file-dist/mpiexec.filedist | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/modules/hooks/file-dist/mpiexec.filedist b/modules/hooks/file-dist/mpiexec.filedist index fca3c1f..6992eaf 100644 --- a/modules/hooks/file-dist/mpiexec.filedist +++ b/modules/hooks/file-dist/mpiexec.filedist @@ -10,12 +10,8 @@ check_distribution_method() { result=255 if test "x$I2G_MPI_TYPE" = "xmpich" -o "x$I2G_MPI_TYPE" = "xmpich2"; then if test "x${MPI_START_SCHEDULER}" = "xpbs" ; then - if test "x${MPI_MPIEXEC}" != "x" ; then - $MPI_MPIEXEC 2>&1 | grep -e "-\<np\>" > /dev/null 2>&1 - status=$? - if test $status -ne 0 ; then - result=0 - fi + if test ${OSC_MPIEXEC} -eq 1 ; then + result=0 fi fi fi -- GitLab