2005-12-14 21:51:08 +03:00
|
|
|
# - Find MPI
|
|
|
|
# This module looks for MPI (Message Passing Interface) support
|
2001-05-03 01:07:09 +04:00
|
|
|
# it will define the following values
|
2005-12-14 21:51:08 +03:00
|
|
|
# MPI_INCLUDE_PATH = where mpi.h can be found
|
2005-12-15 22:17:43 +03:00
|
|
|
# MPI_LIBRARY = the library to link in (mpi mpich etc)
|
2001-05-03 01:07:09 +04:00
|
|
|
|
2002-04-18 23:58:11 +04:00
|
|
|
FIND_PATH(MPI_INCLUDE_PATH mpi.h
|
|
|
|
/usr/local/include
|
|
|
|
/usr/include
|
|
|
|
/usr/include/mpi
|
2003-08-07 17:19:39 +04:00
|
|
|
/usr/local/mpi/include
|
2006-02-28 18:27:30 +03:00
|
|
|
"$ENV{ProgramFiles}/MPICH/SDK/Include"
|
2003-08-07 17:19:39 +04:00
|
|
|
"C:/Program Files/MPICH/SDK/Include"
|
|
|
|
)
|
2001-05-03 01:07:09 +04:00
|
|
|
|
2001-05-09 22:53:32 +04:00
|
|
|
FIND_LIBRARY(MPI_LIBRARY
|
|
|
|
NAMES mpi mpich
|
2003-08-07 17:19:39 +04:00
|
|
|
PATHS /usr/lib /usr/local/lib /usr/local/mpi/lib
|
2006-02-28 18:27:30 +03:00
|
|
|
"$ENV{ProgramFiles}/MPICH/SDK/Lib"
|
2003-08-07 17:19:39 +04:00
|
|
|
"C:/Program Files/MPICH/SDK/Lib"
|
|
|
|
)
|
2001-05-03 01:07:09 +04:00
|
|
|
|
2001-12-12 19:51:03 +03:00
|
|
|
FIND_LIBRARY(MPI_EXTRA_LIBRARY
|
|
|
|
NAMES mpi++
|
2006-02-28 18:27:30 +03:00
|
|
|
PATHS /usr/lib /usr/local/lib /usr/local/mpi/lib
|
|
|
|
"$ENV{ProgramFiles}/MPICH/SDK/Lib"
|
2003-08-07 17:19:39 +04:00
|
|
|
"C:/Program Files/MPICH/SDK/Lib"
|
2005-12-14 21:51:08 +03:00
|
|
|
DOC "If a second mpi library is necessary, specify it here.")
|
2001-12-12 19:51:03 +03:00
|
|
|
|
|
|
|
MARK_AS_ADVANCED(MPI_INCLUDE_PATH MPI_LIBRARY MPI_EXTRA_LIBRARY)
|