Skip to content

Commit

Permalink
Merge pull request #620 from KineticTheory/support_mpirun_bin_dir
Browse files Browse the repository at this point in the history
Teach DBS to find and use mpirun found at /usr/bin.
  • Loading branch information
Alex Long authored May 14, 2019
2 parents f1a0e3e + 50be43d commit 3baed49
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/setupMPI.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function( setMPIflavorVer )
foreach( line ${TEMP} )

# extract the version...
if( ${line} MATCHES "Version" )
if( ${line} MATCHES "Version" OR ${line} MATCHES "OpenRTE")
set(DBS_MPI_VER "${line}")
if( "${DBS_MPI_VER}" MATCHES "[0-9]+[.][0-9]+[.][0-9]+" )
string( REGEX REPLACE ".*([0-9]+)[.]([0-9]+)[.]([0-9]+).*" "\\1"
Expand All @@ -78,6 +78,9 @@ function( setMPIflavorVer )
DBS_MPI_VER_MINOR ${DBS_MPI_VER} )
set( MPI_VERSION "${DBS_MPI_VER_MAJOR}.${DBS_MPI_VER_MINOR}" )
endif()
else()
message(FATAL_ERROR "DBS did not find the MPI version string (is this "
"an older openmpi?)")
endif()

# if needed, make a 2nd pass at identifying the MPI flavor
Expand Down

0 comments on commit 3baed49

Please sign in to comment.