mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Adding an interface to PaStiX, the multithreaded and distributed linear solver
This commit is contained in:
24
cmake/FindMetis.cmake
Normal file
24
cmake/FindMetis.cmake
Normal file
@@ -0,0 +1,24 @@
|
||||
# Pastix requires METIS or METIS (partitioning and reordering tools)
|
||||
|
||||
if (METIS_INCLUDES AND METIS_LIBRARIES)
|
||||
set(METIS_FIND_QUIETLY TRUE)
|
||||
endif (METIS_INCLUDES AND METIS_LIBRARIES)
|
||||
|
||||
find_path(METIS_INCLUDES
|
||||
NAMES
|
||||
metis.h
|
||||
PATHS
|
||||
$ENV{METISDIR}
|
||||
${INCLUDE_INSTALL_DIR}
|
||||
PATH_SUFFIXES
|
||||
metis
|
||||
)
|
||||
|
||||
|
||||
find_library(METIS_LIBRARIES metis PATHS $ENV{METISDIR} ${LIB_INSTALL_DIR})
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(METIS DEFAULT_MSG
|
||||
METIS_INCLUDES METIS_LIBRARIES)
|
||||
|
||||
mark_as_advanced(METIS_INCLUDES METIS_LIBRARIES)
|
||||
25
cmake/FindPastix.cmake
Normal file
25
cmake/FindPastix.cmake
Normal file
@@ -0,0 +1,25 @@
|
||||
# Pastix lib requires linking to a blas library.
|
||||
# It is up to the user of this module to find a BLAS and link to it.
|
||||
# Pastix requires SCOTCH or METIS (partitioning and reordering tools) as well
|
||||
|
||||
if (PASTIX_INCLUDES AND PASTIX_LIBRARIES)
|
||||
set(PASTIX_FIND_QUIETLY TRUE)
|
||||
endif (PASTIX_INCLUDES AND PASTIX_LIBRARIES)
|
||||
|
||||
find_path(PASTIX_INCLUDES
|
||||
NAMES
|
||||
pastix_nompi.h
|
||||
PATHS
|
||||
$ENV{PASTIXDIR}
|
||||
${INCLUDE_INSTALL_DIR}
|
||||
)
|
||||
|
||||
find_library(PASTIX_LIBRARIES pastix PATHS $ENV{PASTIXDIR} ${LIB_INSTALL_DIR})
|
||||
|
||||
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(PASTIX DEFAULT_MSG
|
||||
PASTIX_INCLUDES PASTIX_LIBRARIES)
|
||||
|
||||
mark_as_advanced(PASTIX_INCLUDES PASTIX_LIBRARIES)
|
||||
24
cmake/FindScotch.cmake
Normal file
24
cmake/FindScotch.cmake
Normal file
@@ -0,0 +1,24 @@
|
||||
# Pastix requires SCOTCH or METIS (partitioning and reordering tools)
|
||||
|
||||
if (SCOTCH_INCLUDES AND SCOTCH_LIBRARIES)
|
||||
set(SCOTCH_FIND_QUIETLY TRUE)
|
||||
endif (SCOTCH_INCLUDES AND SCOTCH_LIBRARIES)
|
||||
|
||||
find_path(SCOTCH_INCLUDES
|
||||
NAMES
|
||||
scotch.h
|
||||
PATHS
|
||||
$ENV{SCOTCHDIR}
|
||||
${INCLUDE_INSTALL_DIR}
|
||||
PATH_SUFFIXES
|
||||
scotch
|
||||
)
|
||||
|
||||
|
||||
find_library(SCOTCH_LIBRARIES scotch PATHS $ENV{SCOTCHDIR} ${LIB_INSTALL_DIR})
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(SCOTCH DEFAULT_MSG
|
||||
SCOTCH_INCLUDES SCOTCH_LIBRARIES)
|
||||
|
||||
mark_as_advanced(SCOTCH_INCLUDES SCOTCH_LIBRARIES)
|
||||
Reference in New Issue
Block a user