Skip to content

Commit

Permalink
minor enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
shahmoradi committed Jan 3, 2021
1 parent 7ef2515 commit 3548c09
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions example/buildParaMonteExample.sh
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ do
gnuDepDetected=true
fi

if ( [ "${MPILIB_NAME}" = "impi" ] || [ "${MPILIB_NAME}" = "mpich" ] ) \
if ( [ "${MPILIB_NAME}" = "impi" ] ) \
&& ( \
[[ "${dependencyFilePath}" =~ .*"libmpi".* ]] \
|| \
Expand All @@ -356,6 +356,19 @@ do
[[ "${dependencyFilePath}" =~ .*"libopen-pal".* ]] \
); then \
mpiDepDetected=true
depAllowed=false
fi

# except mpich, carrying MPI dependencies around does not seem to be a good idea.

if ( [ "${MPILIB_NAME}" = "mpich" ] ) \
&& ( \
[[ "${dependencyFilePath}" =~ .*"libmpi".* ]] \
|| \
[[ "${dependencyFilePath}" =~ .*"libmpifort".* ]] \
); then \
mpiDepDetected=true
depAllowed=true
fi

if [ "${MPILIB_NAME}" = "openmpi" ] \
Expand All @@ -368,7 +381,7 @@ do
|| \
[[ "${dependencyFilePath}" =~ .*"libopen".* ]] \
); then \
#mpiDepDetected=true
mpiDepDetected=true
depAllowed=false
fi

Expand Down

0 comments on commit 3548c09

Please sign in to comment.