FindMPI.cmake 14.9 KB
Newer Older
1
# - Message Passing Interface (MPI) module.
Bill Hoffman's avatar
Bill Hoffman committed
2
#
3 4 5 6 7 8 9
# The Message Passing Interface (MPI) is a library used to write
# high-performance parallel applications that use message passing, and
# is typically deployed on a cluster. MPI is a standard interface
# (defined by the MPI forum) for which many implementations are
# available. All of these implementations have somewhat different
# compilation approaches (different include paths, libraries to link
# against, etc.), and this module tries to smooth out those differences.
10 11 12 13
#
# This module will set the following variables:
#   MPI_FOUND                  TRUE if we have found MPI
#   MPI_COMPILE_FLAGS          Compilation flags for MPI programs
14
#   MPI_INCLUDE_PATH           Include path(s) for MPI header
15
#   MPI_LINK_FLAGS             Linking flags for MPI programs
16 17 18
#   MPI_LIBRARY                First MPI library to link against (cached)
#   MPI_EXTRA_LIBRARY          Extra MPI libraries to link against (cached)
#   MPI_LIBRARIES              All libraries to link MPI programs against
19
#   MPIEXEC                    Executable for running MPI programs
20 21 22 23 24
#   MPIEXEC_NUMPROC_FLAG       Flag to pass to MPIEXEC before giving it the
#                              number of processors to run on
#   MPIEXEC_PREFLAGS           Flags to pass to MPIEXEC directly before the
#                              executable to run.
#   MPIEXEC_POSTFLAGS          Flags to pass to MPIEXEC after all other flags.
25 26
#
# This module will attempt to auto-detect these settings, first by
27 28 29 30 31 32 33 34 35 36 37
# looking for a MPI compiler, which many MPI implementations provide
# as a pass-through to the native compiler to simplify the compilation
# of MPI programs. The MPI compiler is stored in the cache variable
# MPI_COMPILER, and will attempt to look for commonly-named drivers
# mpic++, mpicxx, mpiCC, or mpicc. If the compiler driver is found and
# recognized, it will be used to set all of the module variables. To
# skip this auto-detection, set MPI_LIBRARY and MPI_INCLUDE_PATH in
# the CMake cache.
#
# If no compiler driver is found or the compiler driver is not
# recognized, this module will then search for common include paths
Bill Hoffman's avatar
Bill Hoffman committed
38
# and library names to try to detect MPI.
39 40 41 42 43 44 45 46 47 48 49 50 51
#
# If CMake initially finds a different MPI than was intended, and you
# want to use the MPI compiler auto-detection for a different MPI
# implementation, set MPI_COMPILER to the MPI compiler driver you want
# to use (e.g., mpicxx) and then set MPI_LIBRARY to the string
# MPI_LIBRARY-NOTFOUND. When you re-configure, auto-detection of MPI
# will run again with the newly-specified MPI_COMPILER.
#
# When using MPIEXEC to execute MPI applications, you should typically
# use all of the MPIEXEC flags as follows:
#   ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} PROCS ${MPIEXEC_PREFLAGS} EXECUTABLE
#     ${MPIEXEC_POSTFLAGS} ARGS
# where PROCS is the number of processors on which to execute the program,
Bill Hoffman's avatar
Bill Hoffman committed
52
# EXECUTABLE is the MPI program, and ARGS are the arguments to pass to the
53
# MPI program.
54

55 56 57 58 59 60 61 62 63 64 65 66 67
#=============================================================================
# Copyright 2001-2009 Kitware, Inc.
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
# (To distributed this file outside of CMake, substitute the full
#  License text for the above reference.)

Bill Hoffman's avatar
Bill Hoffman committed
68 69 70 71 72 73
# This module is maintained by David Partyka <dave.partyka@kitware.com>.

# A set of directories to search through in addition to the standard system paths
# that find_program will search through.
# Microsoft HPC SDK is automatically added to the system path
# Argonne National Labs MPICH2 sets a registry key that we can use.
74

Brad King's avatar
Brad King committed
75
set(_MPI_PACKAGE_DIR
Bill Hoffman's avatar
Bill Hoffman committed
76 77 78 79 80 81 82 83 84 85
  mpi
  mpich
  openmpi
  lib/mpi
  lib/mpich
  lib/openmpi
  "MPICH/SDK"
  "Microsoft Compute Cluster Pack"
  )

Brad King's avatar
Brad King committed
86
set(_MPI_PREFIX_PATH)
Bill Hoffman's avatar
Bill Hoffman committed
87
if(WIN32)
Brad King's avatar
Brad King committed
88
  list(APPEND _MPI_PREFIX_PATH "[HKEY_LOCAL_MACHINE\\SOFTWARE\\MPICH\\SMPD;binary]/..")
Bill Hoffman's avatar
Bill Hoffman committed
89 90 91
endif()

foreach(SystemPrefixDir ${CMAKE_SYSTEM_PREFIX_PATH})
Brad King's avatar
Brad King committed
92
  foreach(MpiPackageDir ${_MPI_PREFIX_PATH})
Bill Hoffman's avatar
Bill Hoffman committed
93
    if(EXISTS ${SystemPrefixDir}/${MpiPackageDir})
Brad King's avatar
Brad King committed
94
      list(APPEND _MPI_PREFIX_PATH "${SystemPrefixDir}/${MpiPackageDir}")
Bill Hoffman's avatar
Bill Hoffman committed
95 96 97 98 99
    endif()
  endforeach(MpiPackageDir)
endforeach(SystemPrefixDir)

# Most mpi distros have some form of mpiexec which gives us something we can reliably look for.
100
find_program(MPIEXEC
101
  NAMES mpiexec mpirun lamexec
Brad King's avatar
Brad King committed
102
  PATHS ${_MPI_PREFIX_PATH}
Bill Hoffman's avatar
Bill Hoffman committed
103 104 105 106 107 108
  PATH_SUFFIXES bin
  DOC "Executable for running MPI programs."
  )

# call get_filename_component twice to remove mpiexec and the directory it exists in (typically bin).
# This gives us a fairly reliable base directory to search for /bin /lib and /include from.
Brad King's avatar
Brad King committed
109 110
get_filename_component(_MPI_BASE_DIR "${MPIEXEC}" PATH)
get_filename_component(_MPI_BASE_DIR "${_MPI_BASE_DIR}" PATH)
Bill Hoffman's avatar
Bill Hoffman committed
111 112

# If there is an mpi compiler find it and interogate (farther below) it for the include
Brad King's avatar
Brad King committed
113
# and lib dirs otherwise we will continue to search from ${_MPI_BASE_DIR}.
Bill Hoffman's avatar
Bill Hoffman committed
114 115
find_program(MPI_COMPILER
  NAMES mpic++ mpicxx mpiCC mpicc
Brad King's avatar
Brad King committed
116
  HINTS "${_MPI_BASE_DIR}"
Bill Hoffman's avatar
Bill Hoffman committed
117 118 119
  PATH_SUFFIXES bin
  DOC "MPI compiler. Used only to detect MPI compilation flags.")
mark_as_advanced(MPI_COMPILER)
120

121 122 123 124
set(MPIEXEC_NUMPROC_FLAG "-np" CACHE STRING "Flag used by MPI to specify the number of processes for MPIEXEC; the next option will be the number of processes.")
set(MPIEXEC_PREFLAGS "" CACHE STRING "These flags will be directly before the executable that is being run by MPIEXEC.")
set(MPIEXEC_POSTFLAGS "" CACHE STRING "These flags will come after all flags given to MPIEXEC.")
set(MPIEXEC_MAX_NUMPROCS "2" CACHE STRING "Maximum number of processors available to run MPI applications.")
Bill Hoffman's avatar
Bill Hoffman committed
125
mark_as_advanced(MPIEXEC MPIEXEC_NUMPROC_FLAG MPIEXEC_PREFLAGS
126
  MPIEXEC_POSTFLAGS MPIEXEC_MAX_NUMPROCS)
127

128 129 130 131
if (MPI_INCLUDE_PATH AND MPI_LIBRARY)
  # Do nothing: we already have MPI_INCLUDE_PATH and MPI_LIBRARY in
  # the cache, and we don't want to override those settings.
elseif (MPI_COMPILER)
132 133 134
  # Check whether the -showme:compile option works. This indicates
  # that we have either Open MPI or a newer version of LAM-MPI, and
  # implies that -showme:link will also work.
Bill Hoffman's avatar
Bill Hoffman committed
135 136 137
  # Note that Windows distros do not have an mpi compiler to interogate.
  exec_program(${MPI_COMPILER}
    ARGS -showme:compile
138
    OUTPUT_VARIABLE MPI_COMPILE_CMDLINE
139
    RETURN_VALUE MPI_COMPILER_RETURN)
140

141
  if (MPI_COMPILER_RETURN EQUAL 0)
142 143
    # If we appear to have -showme:compile, then we should also have
    # -showme:link. Try it.
Bill Hoffman's avatar
Bill Hoffman committed
144
    exec_program(${MPI_COMPILER}
145 146
      ARGS -showme:link
      OUTPUT_VARIABLE MPI_LINK_CMDLINE
147
      RETURN_VALUE MPI_COMPILER_RETURN)
148 149 150 151

    # Note that we probably have -showme:incdirs and -showme:libdirs
    # as well.
    set(MPI_COMPILER_MAY_HAVE_INCLIBDIRS TRUE)
152
  endif (MPI_COMPILER_RETURN EQUAL 0)
153

154
  if (MPI_COMPILER_RETURN EQUAL 0)
155
    # Do nothing: we have our command lines now
156
  else (MPI_COMPILER_RETURN EQUAL 0)
157
    # Older versions of LAM-MPI have "-showme". Try it.
Bill Hoffman's avatar
Bill Hoffman committed
158
    exec_program(${MPI_COMPILER}
159 160
      ARGS -showme
      OUTPUT_VARIABLE MPI_COMPILE_CMDLINE
161
      RETURN_VALUE MPI_COMPILER_RETURN)
Bill Hoffman's avatar
Bill Hoffman committed
162
  endif (MPI_COMPILER_RETURN EQUAL 0)
163

164
  if (MPI_COMPILER_RETURN EQUAL 0)
165
    # Do nothing: we have our command lines now
166
  else (MPI_COMPILER_RETURN EQUAL 0)
167
    # MPICH uses "-show". Try it.
Bill Hoffman's avatar
Bill Hoffman committed
168
    exec_program(${MPI_COMPILER}
169 170
      ARGS -show
      OUTPUT_VARIABLE MPI_COMPILE_CMDLINE
171
      RETURN_VALUE MPI_COMPILER_RETURN)
Bill Hoffman's avatar
Bill Hoffman committed
172
  endif (MPI_COMPILER_RETURN EQUAL 0)
173

174
  if (MPI_COMPILER_RETURN EQUAL 0)
175 176 177 178 179
    # We have our command lines, but we might need to copy
    # MPI_COMPILE_CMDLINE into MPI_LINK_CMDLINE, if the underlying
    if (NOT MPI_LINK_CMDLINE)
      SET(MPI_LINK_CMDLINE ${MPI_COMPILE_CMDLINE})
    endif (NOT MPI_LINK_CMDLINE)
180 181 182 183
  else (MPI_COMPILER_RETURN EQUAL 0)
    message(STATUS "Unable to determine MPI from MPI driver ${MPI_COMPILER}")
  endif (MPI_COMPILER_RETURN EQUAL 0)
endif (MPI_INCLUDE_PATH AND MPI_LIBRARY)
184

185 186 187
if (MPI_INCLUDE_PATH AND MPI_LIBRARY)
  # Do nothing: we already have MPI_INCLUDE_PATH and MPI_LIBRARY in
  # the cache, and we don't want to override those settings.
188 189
elseif (MPI_COMPILE_CMDLINE)
  # Extract compile flags from the compile command line.
190
  string(REGEX MATCHALL "-D([^\" ]+|\"[^\"]+\")" MPI_ALL_COMPILE_FLAGS "${MPI_COMPILE_CMDLINE}")
191 192 193 194 195 196 197 198 199 200
  set(MPI_COMPILE_FLAGS_WORK)
  foreach(FLAG ${MPI_ALL_COMPILE_FLAGS})
    if (MPI_COMPILE_FLAGS_WORK)
      set(MPI_COMPILE_FLAGS_WORK "${MPI_COMPILE_FLAGS_WORK} ${FLAG}")
    else(MPI_COMPILE_FLAGS_WORK)
      set(MPI_COMPILE_FLAGS_WORK ${FLAG})
    endif(MPI_COMPILE_FLAGS_WORK)
  endforeach(FLAG)

  # Extract include paths from compile command line
201 202 203 204 205 206 207
  string(REGEX MATCHALL "-I([^\" ]+|\"[^\"]+\")" MPI_ALL_INCLUDE_PATHS "${MPI_COMPILE_CMDLINE}")
  set(MPI_INCLUDE_PATH_WORK)
  foreach(IPATH ${MPI_ALL_INCLUDE_PATHS})
    string(REGEX REPLACE "^-I" "" IPATH ${IPATH})
    string(REGEX REPLACE "//" "/" IPATH ${IPATH})
    list(APPEND MPI_INCLUDE_PATH_WORK ${IPATH})
  endforeach(IPATH)
Bill Hoffman's avatar
Bill Hoffman committed
208

209 210 211 212
  if (NOT MPI_INCLUDE_PATH_WORK)
    if (MPI_COMPILER_MAY_HAVE_INCLIBDIRS)
      # The compile command line didn't have any include paths on it,
      # but we may have -showme:incdirs. Use it.
Bill Hoffman's avatar
Bill Hoffman committed
213
      exec_program(${MPI_COMPILER}
214 215 216 217 218 219 220
        ARGS -showme:incdirs
        OUTPUT_VARIABLE MPI_INCLUDE_PATH_WORK
        RETURN_VALUE MPI_COMPILER_RETURN)
      separate_arguments(MPI_INCLUDE_PATH_WORK)
    endif (MPI_COMPILER_MAY_HAVE_INCLIBDIRS)
  endif (NOT MPI_INCLUDE_PATH_WORK)

221 222 223
  if (NOT MPI_INCLUDE_PATH_WORK)
    # If all else fails, just search for mpi.h in the normal include
    # paths.
Bill Hoffman's avatar
Bill Hoffman committed
224
    find_path(MPI_INCLUDE_PATH mpi.h
Brad King's avatar
Brad King committed
225
  HINTS ${_MPI_BASE_DIR} ${_MPI_PREFIX_PATH}
Bill Hoffman's avatar
Bill Hoffman committed
226 227
  PATH_SUFFIXES include
    )
228 229 230
    set(MPI_INCLUDE_PATH_WORK ${MPI_INCLUDE_PATH})
  endif (NOT MPI_INCLUDE_PATH_WORK)

231
  # Extract linker paths from the link command line
232 233 234 235 236 237 238
  string(REGEX MATCHALL "-L([^\" ]+|\"[^\"]+\")" MPI_ALL_LINK_PATHS "${MPI_LINK_CMDLINE}")
  set(MPI_LINK_PATH)
  foreach(LPATH ${MPI_ALL_LINK_PATHS})
    string(REGEX REPLACE "^-L" "" LPATH ${LPATH})
    string(REGEX REPLACE "//" "/" LPATH ${LPATH})
    list(APPEND MPI_LINK_PATH ${LPATH})
  endforeach(LPATH)
Alexander Neundorf's avatar
 
Alexander Neundorf committed
239

240 241 242 243
  if (NOT MPI_LINK_PATH)
    if (MPI_COMPILER_MAY_HAVE_INCLIBDIRS)
      # The compile command line didn't have any linking paths on it,
      # but we may have -showme:libdirs. Use it.
Bill Hoffman's avatar
Bill Hoffman committed
244
      exec_program(${MPI_COMPILER}
245 246 247 248 249 250 251
        ARGS -showme:libdirs
        OUTPUT_VARIABLE MPI_LINK_PATH
        RETURN_VALUE MPI_COMPILER_RETURN)
      separate_arguments(MPI_LINK_PATH)
    endif (MPI_COMPILER_MAY_HAVE_INCLIBDIRS)
  endif (NOT MPI_LINK_PATH)

252
  # Extract linker flags from the link command line
253
  string(REGEX MATCHALL "-Wl,([^\" ]+|\"[^\"]+\")" MPI_ALL_LINK_FLAGS "${MPI_LINK_CMDLINE}")
254 255 256 257 258 259 260 261 262 263 264
  set(MPI_LINK_FLAGS_WORK)
  foreach(FLAG ${MPI_ALL_LINK_FLAGS})
    if (MPI_LINK_FLAGS_WORK)
      set(MPI_LINK_FLAGS_WORK "${MPI_LINK_FLAGS_WORK} ${FLAG}")
    else(MPI_LINK_FLAGS_WORK)
      set(MPI_LINK_FLAGS_WORK ${FLAG})
    endif(MPI_LINK_FLAGS_WORK)
  endforeach(FLAG)

  # Extract the set of libraries to link against from the link command
  # line
265
  string(REGEX MATCHALL "-l([^\" ]+|\"[^\"]+\")" MPI_LIBNAMES "${MPI_LINK_CMDLINE}")
266 267 268 269 270 271 272

  # Determine full path names for all of the libraries that one needs
  # to link against in an MPI program
  set(MPI_LIBRARIES)
  foreach(LIB ${MPI_LIBNAMES})
    string(REGEX REPLACE "^-l" "" LIB ${LIB})
    set(MPI_LIB "MPI_LIB-NOTFOUND" CACHE FILEPATH "Cleared" FORCE)
273
    find_library(MPI_LIB ${LIB} HINTS ${MPI_LINK_PATH})
274 275 276
    if (MPI_LIB)
      list(APPEND MPI_LIBRARIES ${MPI_LIB})
    else (MPI_LIB)
277
      message(SEND_ERROR "Unable to find MPI library ${LIB}")
278 279 280 281 282 283 284
    endif (MPI_LIB)
  endforeach(LIB)
  set(MPI_LIB "MPI_LIB-NOTFOUND" CACHE INTERNAL "Scratch variable for MPI detection" FORCE)

  # Chop MPI_LIBRARIES into the old-style MPI_LIBRARY and
  # MPI_EXTRA_LIBRARY.
  list(LENGTH MPI_LIBRARIES MPI_NUMLIBS)
285 286
  list(LENGTH MPI_LIBNAMES MPI_NUMLIBS_EXPECTED)
  if (MPI_NUMLIBS EQUAL MPI_NUMLIBS_EXPECTED)
287 288
    list(GET MPI_LIBRARIES 0 MPI_LIBRARY_WORK)
    set(MPI_LIBRARY ${MPI_LIBRARY_WORK} CACHE FILEPATH "MPI library to link against" FORCE)
289 290 291
  else (MPI_NUMLIBS EQUAL MPI_NUMLIBS_EXPECTED)
    set(MPI_LIBRARY "MPI_LIBRARY-NOTFOUND" CACHE FILEPATH "MPI library to link against" FORCE)
  endif (MPI_NUMLIBS EQUAL MPI_NUMLIBS_EXPECTED)
292
  if (MPI_NUMLIBS GREATER 1)
293 294 295
    set(MPI_EXTRA_LIBRARY_WORK ${MPI_LIBRARIES})
    list(REMOVE_AT MPI_EXTRA_LIBRARY_WORK 0)
    set(MPI_EXTRA_LIBRARY ${MPI_EXTRA_LIBRARY_WORK} CACHE STRING "Extra MPI libraries to link against" FORCE)
296
  else (MPI_NUMLIBS GREATER 1)
297
    set(MPI_EXTRA_LIBRARY "MPI_EXTRA_LIBRARY-NOTFOUND" CACHE STRING "Extra MPI libraries to link against" FORCE)
298 299 300
  endif (MPI_NUMLIBS GREATER 1)

  # Set up all of the appropriate cache entries
301 302 303
  set(MPI_COMPILE_FLAGS ${MPI_COMPILE_FLAGS_WORK} CACHE STRING "MPI compilation flags" FORCE)
  set(MPI_INCLUDE_PATH ${MPI_INCLUDE_PATH_WORK} CACHE STRING "MPI include path" FORCE)
  set(MPI_LINK_FLAGS ${MPI_LINK_FLAGS_WORK} CACHE STRING "MPI linking flags" FORCE)
304
else (MPI_COMPILE_CMDLINE)
Bill Hoffman's avatar
Bill Hoffman committed
305 306
# No MPI compiler to interogate so attempt to find everything with find functions.
  find_path(MPI_INCLUDE_PATH mpi.h
Brad King's avatar
Brad King committed
307
    HINTS ${_MPI_BASE_DIR} ${_MPI_PREFIX_PATH}
Bill Hoffman's avatar
Bill Hoffman committed
308
    PATH_SUFFIXES include
309
    )
310

311
  # Decide between 32-bit and 64-bit libraries for Microsoft's MPI
Bill Hoffman's avatar
Bill Hoffman committed
312
  if("${CMAKE_SIZEOF_VOID_P}" EQUAL 8)
313
    set(MS_MPI_ARCH_DIR amd64)
Bill Hoffman's avatar
Bill Hoffman committed
314
  else()
315
    set(MS_MPI_ARCH_DIR i386)
Bill Hoffman's avatar
Bill Hoffman committed
316
  endif()
317

Bill Hoffman's avatar
Bill Hoffman committed
318
  find_library(MPI_LIBRARY
319
    NAMES mpi mpich msmpi
Brad King's avatar
Brad King committed
320
    HINTS ${_MPI_BASE_DIR} ${_MPI_PREFIX_PATH}
Bill Hoffman's avatar
Bill Hoffman committed
321
    PATH_SUFFIXES lib lib/${MS_MPI_ARCH_DIR} Lib Lib/${MS_MPI_ARCH_DIR}
322 323
    )

Bill Hoffman's avatar
Bill Hoffman committed
324
  find_library(MPI_EXTRA_LIBRARY
325
    NAMES mpi++
Brad King's avatar
Brad King committed
326
    HINTS ${_MPI_BASE_DIR} ${_MPI_PREFIX_PATH}
Bill Hoffman's avatar
Bill Hoffman committed
327
    PATH_SUFFIXES lib
328
    DOC "Extra MPI libraries to link against.")
329 330 331

  set(MPI_COMPILE_FLAGS "" CACHE STRING "MPI compilation flags")
  set(MPI_LINK_FLAGS "" CACHE STRING "MPI linking flags")
332
endif (MPI_INCLUDE_PATH AND MPI_LIBRARY)
333 334 335 336 337 338

# on BlueGene/L the MPI lib is named libmpich.rts.a, there also these additional libs are required
if("${MPI_LIBRARY}" MATCHES "mpich.rts")
   set(MPI_EXTRA_LIBRARY ${MPI_EXTRA_LIBRARY} msglayer.rts devices.rts rts.rts devices.rts)
   set(MPI_LIBRARY ${MPI_LIBRARY}  msglayer.rts devices.rts rts.rts devices.rts)
endif("${MPI_LIBRARY}" MATCHES "mpich.rts")
Alexander Neundorf's avatar
 
Alexander Neundorf committed
339

Bill Hoffman's avatar
Bill Hoffman committed
340
# Set up extra variables to conform to
341 342 343 344 345 346 347 348 349 350 351
if (MPI_EXTRA_LIBRARY)
  set(MPI_LIBRARIES ${MPI_LIBRARY} ${MPI_EXTRA_LIBRARY})
else (MPI_EXTRA_LIBRARY)
  set(MPI_LIBRARIES ${MPI_LIBRARY})
endif (MPI_EXTRA_LIBRARY)

if (MPI_INCLUDE_PATH AND MPI_LIBRARY)
  set(MPI_FOUND TRUE)
else (MPI_INCLUDE_PATH AND MPI_LIBRARY)
  set(MPI_FOUND FALSE)
endif (MPI_INCLUDE_PATH AND MPI_LIBRARY)
Alexander Neundorf's avatar
 
Alexander Neundorf committed
352

353
include(FindPackageHandleStandardArgs)
Bill Hoffman's avatar
Bill Hoffman committed
354
# handle the QUIETLY and REQUIRED arguments
355
find_package_handle_standard_args(MPI DEFAULT_MSG MPI_LIBRARY MPI_INCLUDE_PATH)
356

Bill Hoffman's avatar
Bill Hoffman committed
357
mark_as_advanced(MPI_INCLUDE_PATH MPI_COMPILE_FLAGS MPI_LINK_FLAGS MPI_LIBRARY
358
  MPI_EXTRA_LIBRARY)
Bill Hoffman's avatar
Bill Hoffman committed
359 360

# unset to cleanup namespace
Brad King's avatar
Brad King committed
361 362 363
unset(_MPI_PACKAGE_DIR)
unset(_MPI_PREFIX_PATH)
unset(_MPI_BASE_DIR)