-
Notifications
You must be signed in to change notification settings - Fork 136
/
Copy pathSundialsSetupTPLs.cmake
204 lines (162 loc) · 6.14 KB
/
SundialsSetupTPLs.cmake
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
# ---------------------------------------------------------------
# Programmer(s): Cody J. Balos @ LLNL
# ---------------------------------------------------------------
# SUNDIALS Copyright Start
# Copyright (c) 2002-2024, 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
# ---------------------------------------------------------------
# Setup third-party libraries
# ---------------------------------------------------------------
# ---------------------------------------------------------------
# Setup MPI, OpenMP, and OpenMP offload first as other TPLs may need targets or
# variables corresponding to these TPLs.
# ---------------------------------------------------------------
# ---------------------------------------------------------------
# Find MPI
# ---------------------------------------------------------------
if(ENABLE_MPI)
include(SundialsMPI)
list(APPEND SUNDIALS_TPL_LIST "MPI")
endif()
# ---------------------------------------------------------------
# Find OpenMP
# ---------------------------------------------------------------
if(ENABLE_OPENMP)
include(SundialsOpenMP)
list(APPEND SUNDIALS_TPL_LIST "OPENMP")
endif()
# ---------------------------------------------------------------
# Find OpenMP with device offloading
# --------------------------------------------------------------
if(ENABLE_OPENMP_DEVICE)
include(SundialsOpenMP)
list(APPEND SUNDIALS_TPL_LIST "OPENMP_DEVICE")
endif()
# ---------------------------------------------------------------
# Setup other TPLs (listed in alphabetical order)
# ---------------------------------------------------------------
# ---------------------------------------------------------------
# Find (and test) the Adiak libraries
# ---------------------------------------------------------------
if(ENABLE_ADIAK)
include(SundialsAdiak)
list(APPEND SUNDIALS_TPL_LIST "ADIAK")
endif()
# ---------------------------------------------------------------
# Find (and test) the Caliper libraries
# ---------------------------------------------------------------
if(ENABLE_CALIPER)
include(SundialsCaliper)
list(APPEND SUNDIALS_TPL_LIST "CALIPER")
endif()
# ---------------------------------------------------------------
# Find (and test) the Ginkgo libraries
# ---------------------------------------------------------------
if(ENABLE_GINKGO)
include(SundialsGinkgo)
list(APPEND SUNDIALS_TPL_LIST "GINKGO")
endif()
# ---------------------------------------------------------------
# Find (and test) the hypre libraries
# ---------------------------------------------------------------
if(ENABLE_HYPRE)
include(SundialsHypre)
list(APPEND SUNDIALS_TPL_LIST "HYPRE")
endif()
# ---------------------------------------------------------------
# Find (and test) Kokkos
# ---------------------------------------------------------------
if(ENABLE_KOKKOS)
include(SundialsKokkos)
list(APPEND SUNDIALS_TPL_LIST "KOKKOS")
endif()
# ---------------------------------------------------------------
# Find (and test) Kokkos Kernels
# ---------------------------------------------------------------
if(ENABLE_KOKKOS_KERNELS)
include(SundialsKokkosKernels)
list(APPEND SUNDIALS_TPL_LIST "KOKKOS_KERNELS")
endif()
# ---------------------------------------------------------------
# Find (and test) the KLU libraries
# ---------------------------------------------------------------
if(ENABLE_KLU)
include(SundialsKLU)
list(APPEND SUNDIALS_TPL_LIST "KLU")
endif()
# ---------------------------------------------------------------
# Find (and test) the LAPACK and BLAS libraries
# ---------------------------------------------------------------
if(ENABLE_LAPACK)
include(SundialsLapack)
list(APPEND SUNDIALS_TPL_LIST "BLAS_LAPACK")
endif()
# ---------------------------------------------------------------
# Find (and test) the MAGMA libraries
# ---------------------------------------------------------------
if(ENABLE_MAGMA)
include(SundialsMAGMA)
list(APPEND SUNDIALS_TPL_LIST "MAGMA")
endif()
# ---------------------------------------------------------------
# Find (and test) the oneMKL libraries
# ---------------------------------------------------------------
if(ENABLE_ONEMKL)
include(SundialsONEMKL)
list(APPEND SUNDIALS_TPL_LIST "ONEMKL")
endif()
# ---------------------------------------------------------------
# Find (and test) the PETSc libraries
# ---------------------------------------------------------------
if(ENABLE_PETSC)
include(SundialsPETSC)
list(APPEND SUNDIALS_TPL_LIST "PETSC")
endif()
# ---------------------------------------------------------------
# Find PThreads
# ---------------------------------------------------------------
if(ENABLE_PTHREAD)
include(SundialsPthread)
list(APPEND SUNDIALS_TPL_LIST "PTHREAD")
endif()
# -------------------------------------------------------------
# Find (and test) RAJA
# -------------------------------------------------------------
if(ENABLE_RAJA)
include(SundialsRAJA)
list(APPEND SUNDIALS_TPL_LIST "RAJA")
endif()
# ---------------------------------------------------------------
# Find (and test) the SuperLUDIST libraries
# ---------------------------------------------------------------
if(ENABLE_SUPERLUDIST)
include(SundialsSuperLUDIST)
list(APPEND SUNDIALS_TPL_LIST "SUPERLUDIST")
endif()
# ---------------------------------------------------------------
# Find (and test) the SUPERLUMT libraries
# ---------------------------------------------------------------
if(ENABLE_SUPERLUMT)
include(SundialsSuperLUMT)
list(APPEND SUNDIALS_TPL_LIST "SUPERLUMT")
endif()
# -------------------------------------------------------------
# Find (and test) Trilinos
# -------------------------------------------------------------
if(ENABLE_TRILINOS)
include(SundialsTrilinos)
list(APPEND SUNDIALS_TPL_LIST "TRILINOS")
endif()
# -------------------------------------------------------------
# Find (and test) XBraid
# -------------------------------------------------------------
if(ENABLE_XBRAID)
include(SundialsXBRAID)
list(APPEND SUNDIALS_TPL_LIST "XBRAID")
endif()