opm-simulators/opm-simulators-prereqs.cmake

72 lines
1.5 KiB
CMake
Raw Normal View History

2017-12-19 05:44:24 -06:00
# defines that must be present in config.h for our headers
set (opm-simulators_CONFIG_VAR
HAVE_OPM_GRID
HAVE_PTHREAD
HAVE_EWOMS
HAVE_MPI
HAVE_PETSC
2022-11-17 02:59:49 -06:00
COMPILE_BDA_BRIDGE
HAVE_CUDA
HAVE_OPENCL
HAVE_OPENCL_HPP
2021-06-02 09:19:00 -05:00
HAVE_AMGCL
HAVE_VEXCL
2022-10-18 06:59:00 -05:00
HAVE_ROCALUTION
2023-01-18 03:11:42 -06:00
HAVE_ROCSPARSE
HAVE_SUITESPARSE_UMFPACK_H
HAVE_DUNE_COMMON
HAVE_DUNE_ISTL
DUNE_ISTL_WITH_CHECKING
2017-12-19 05:44:24 -06:00
DUNE_ISTL_VERSION_MAJOR
DUNE_ISTL_VERSION_MINOR
DUNE_ISTL_VERSION_REVISION
HAVE_SUITESPARSE_UMFPACK
HAVE_DAMARIS
HAVE_HDF5
USE_HIP
USE_TRACY
FLOW_INSTANTIATE_FLOAT
HAVE_FLOATING_POINT_FROM_CHARS
OPM_COMPILE_COMPONENTS_TEMPLATE_LIST
2017-12-19 05:44:24 -06:00
)
# dependencies
set (opm-simulators_DEPS
# Compile with C99 support if available
"C99"
# Various runtime library enhancements
"Boost 1.44.0
2020-02-12 02:10:07 -06:00
COMPONENTS date_time system unit_test_framework REQUIRED"
2017-12-19 05:44:24 -06:00
# DUNE prerequisites
"dune-common REQUIRED"
"dune-istl REQUIRED"
"dune-alugrid"
"dune-fem"
# matrix library
"BLAS REQUIRED"
"LAPACK REQUIRED"
# Look for MPI support
"MPI"
2017-12-19 05:44:24 -06:00
# Tim Davis' SuiteSparse archive
"SuiteSparse REQUIRED COMPONENTS umfpack"
# SuperLU direct solver
"SuperLU"
2022-10-18 06:59:00 -05:00
# ROCALUTION from ROCM framework
"rocalution"
2023-01-18 03:11:42 -06:00
# packages from ROCm framework
"rocblas"
"rocsparse"
2017-12-19 05:44:24 -06:00
# OPM dependency
"opm-common REQUIRED"
"opm-grid REQUIRED"
"Damaris 1.9"
"HDF5"
"Tracy"
2017-12-19 05:44:24 -06:00
)
find_package_deps(opm-simulators)
if(NOT HAVE_ECL_INPUT OR NOT HAVE_ECL_OUTPUT)
message(FATAL_ERROR "Eclipse input/output support required in opm-common")
endif()