1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
# ---------------------------------------------------------------
# Programmer(s): David J. Gardner and Slaven Peles @ LLNL
# ---------------------------------------------------------------
# SUNDIALS Copyright Start
# Copyright (c) 2002-2022, Lawrence Livermore National Security
# and Southern Methodist University.
# All rights reserved.
#
# See the top-level LICENSE and NOTICE files for details.
#
# SPDX-License-Identifier: BSD-3-Clause
# SUNDIALS Copyright End
# ---------------------------------------------------------------
# examples/sunlinsol level CMakeLists.txt for SUNDIALS
# ---------------------------------------------------------------
if(ENABLE_CALIPER AND SUNDIALS_BUILD_WITH_PROFILING)
include_directories(${caliper_INCLUDE_DIR})
set(EXE_EXTRA_LINK_LIBS ${EXE_EXTRA_LINK_LIBS} caliper)
endif()
# Always add the serial sunlinearsolver dense and band examples
add_subdirectory(band)
add_subdirectory(dense)
# Always add serial sunlinearsolver iterative examples
add_subdirectory(spgmr/serial)
add_subdirectory(spfgmr/serial)
add_subdirectory(spbcgs/serial)
add_subdirectory(sptfqmr/serial)
add_subdirectory(pcg/serial)
# Build the sunlinsol test utilities
add_library(test_sunlinsol_obj OBJECT test_sunlinsol.c test_sunlinsol.h)
target_link_libraries(test_sunlinsol_obj PRIVATE sundials_sunlinsoldense)
if(ENABLE_MPI AND MPI_C_FOUND)
add_subdirectory(spgmr/parallel)
add_subdirectory(spfgmr/parallel)
add_subdirectory(spbcgs/parallel)
add_subdirectory(sptfqmr/parallel)
endif()
if(BUILD_SUNMATRIX_CUSPARSE)
if(SUNDIALS_INDEX_SIZE MATCHES "32")
add_subdirectory(cusolversp)
endif()
endif()
if(BUILD_SUNLINSOL_GINKGO)
add_subdirectory(ginkgo)
endif()
if(BUILD_SUNLINSOL_KLU)
add_subdirectory(klu)
endif()
if(BUILD_SUNLINSOL_KOKKOSDENSE)
add_subdirectory(kokkos)
endif()
if(BUILD_SUNLINSOL_LAPACKBAND)
add_subdirectory(lapackband)
endif()
if(BUILD_SUNLINSOL_LAPACKDENSE)
add_subdirectory(lapackdense)
endif()
if(BUILD_SUNLINSOL_MAGMADENSE)
add_subdirectory(magmadense)
endif()
if(BUILD_SUNLINSOL_ONEMKLDENSE)
add_subdirectory(onemkldense)
endif()
if(BUILD_SUNLINSOL_SUPERLUMT)
add_subdirectory(superlumt)
endif()
if(BUILD_SUNLINSOL_SUPERLUDIST)
add_subdirectory(superludist)
endif()
|