Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
c1523fa
add DEPRECATED_NAME option to SundialsOption
gardner48 Nov 8, 2025
817775f
remove cmake commands from example READMEs
gardner48 Nov 8, 2025
6b3f611
update package option names
gardner48 Nov 8, 2025
cb9cca6
add option to unset deprecated option
gardner48 Nov 8, 2025
6354315
switch macro to function
gardner48 Nov 8, 2025
783fb02
allow for multiple deprecated names
gardner48 Nov 8, 2025
23b1b58
update ENABLE_MPI to SUNDIALS_ENABLE_MPI
gardner48 Nov 8, 2025
c13db0b
add table of new CMake options to changelog
gardner48 Nov 8, 2025
cd68a87
BUILD_FORTRAN_MODULE_INTERFACE to SUNDIALS_ENABLE_FORTRAN
gardner48 Nov 8, 2025
a0434d5
make unset_deprecated a cache option for testing
gardner48 Nov 8, 2025
ee0a652
ENABLE_OPENMP to SUNDIALS_ENABLE_OPENMP
gardner48 Nov 8, 2025
96b80d8
ENABLE_OPENMP_DEVICE to SUNDIALS_ENABLE_OPENMP_DEVICE
gardner48 Nov 8, 2025
7ef853a
OPENMP_DEVICE_WORKS to SUNDIALS_OPENMP_DEVICE_WORKS
gardner48 Nov 8, 2025
ec2e114
update table
gardner48 Nov 8, 2025
13ba032
ENABLE_PTHREAD to SUNDIALS_ENABLE_PTHREAD
gardner48 Nov 8, 2025
472bc6c
ENABLE_CUDA to SUNDIALS_ENABLE_CUDA
gardner48 Nov 8, 2025
df7bd4a
ENABLE_HIP to SUNDIALS_ENABLE_HIP
gardner48 Nov 8, 2025
c657aab
ENABLE_SYCL to SUNDIALS_ENABLE_SYCL
gardner48 Nov 8, 2025
76a02c5
ENABLE_LAPACK to SUNDIALS_ENABLE_LAPACK
gardner48 Nov 8, 2025
dd3a514
LAPACK_WORKS to SUNDIALS_LAPACK_WORKS
gardner48 Nov 8, 2025
1212b80
update Ginkgo options
gardner48 Nov 9, 2025
5c710e6
update magma options
gardner48 Nov 9, 2025
6b0f67b
update superlu-dist options
gardner48 Nov 9, 2025
6fad66c
update superlu-mt options
gardner48 Nov 9, 2025
06e149f
add space
gardner48 Nov 9, 2025
7ce79c0
update klu options
gardner48 Nov 9, 2025
3772f6c
update hypre options
gardner48 Nov 9, 2025
04d7fac
fix typo in docs
gardner48 Nov 9, 2025
343b16d
update petsc options
gardner48 Nov 9, 2025
6242829
update trilinos option
gardner48 Nov 9, 2025
827de98
update raja option
gardner48 Nov 9, 2025
4e3507c
update deprecated comments
gardner48 Nov 9, 2025
3276937
update xbraid options
gardner48 Nov 9, 2025
1b71564
update onemkl options
gardner48 Nov 9, 2025
7894f6b
update caliper option
gardner48 Nov 13, 2025
ce7ebf3
update ADIAK option
gardner48 Nov 13, 2025
7c46193
update KOKKOS and KOKKOS KERNELS options
gardner48 Nov 13, 2025
db31c80
BUILD_WITH_MONITORING to ENABLE_MONITORING
gardner48 Nov 13, 2025
b6ed7bf
BUILD_WITH_PROFILING to ENABLE_PROFILING
gardner48 Nov 13, 2025
d3812a9
update BENCHMARKS options
gardner48 Nov 15, 2025
23c7e53
update compiler warnings and sanitizer flag options
gardner48 Nov 16, 2025
41ad4de
revert changes to config_cmake.py
gardner48 Nov 16, 2025
23e8f26
update examples options
gardner48 Nov 16, 2025
3b49174
update fused kernel option
gardner48 Nov 16, 2025
730bcdf
update build nvector options
gardner48 Nov 16, 2025
18a93f3
update build sunmatrix options
gardner48 Nov 16, 2025
cd289c7
update sunlinsol and sunnonlinsol options
gardner48 Nov 16, 2025
d3a44ba
update build list
gardner48 Nov 16, 2025
5f986bc
define and deprecate old macros in sundials_config.h
gardner48 Nov 20, 2025
d750c4f
fix typo
gardner48 Nov 23, 2025
e555407
move option to unset deprecated options and init from env
gardner48 Nov 23, 2025
b2a11d0
conditionally unset deprecated options
gardner48 Nov 23, 2025
b564f6d
update options to use DEPRECATED_NAMES
gardner48 Nov 23, 2025
754cbfa
add deprecated option
gardner48 Nov 23, 2025
d02139b
update option names in docs
gardner48 Nov 23, 2025
9f65d53
fix typo
gardner48 Nov 23, 2025
003a54e
unset deprecated options in Jenkins CI
gardner48 Nov 23, 2025
c195544
remove broken cross-references
gardner48 Nov 27, 2025
d7ffd2b
fix indentation
gardner48 Nov 27, 2025
a23c5bc
apply formatting
gardner48 Nov 30, 2025
0ea5062
add cmake module docs
gardner48 Nov 30, 2025
2af070f
co-locate benchmarking options
gardner48 Nov 30, 2025
35f707f
update cmake options docs
gardner48 Nov 30, 2025
bbc79b2
add NEGATE_DEPRECATED option to sundials_option
gardner48 Nov 30, 2025
abfe566
fix typo
gardner48 Nov 30, 2025
322f6ce
wrap long lines
gardner48 Nov 30, 2025
8bd83cb
update rst recent changes
gardner48 Nov 30, 2025
c782526
replace WORKS options
gardner48 Dec 1, 2025
8ae5933
add missing CMake options
gardner48 Dec 1, 2025
15e4e86
link hypre test to MPI
gardner48 Dec 1, 2025
698d477
link XBraid test to MPI
gardner48 Dec 1, 2025
70bc492
link math library to XBraid test
gardner48 Dec 1, 2025
eff8842
apply formatting
gardner48 Jan 28, 2026
6858d89
update new instances of BUILD_ to SUNDIALS_ENABLE_
gardner48 Jan 28, 2026
7fe4f68
Merge branch 'develop' into cmake/prefix-options
gardner48 Feb 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
67 changes: 67 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,73 @@

### Deprecation Notices

Several CMake options have been deprecated in favor of namespaced versions
prefixed with `SUNDIALS_` to avoid naming collisions in applications that
include SUNDIALS directly within their CMake builds. Additionally, a consistent
naming convention (`SUNDIALS_ENABLE`) is now used for all boolean options. The
table below lists the old CMake option names and the new replacements.

| Old Option | New Option |
|----------------------------------------|------------------------------------------------|
| `BUILD_ARKODE` | `SUNDIALS_ENABLE_ARKODE` |
| `BUILD_CVODE` | `SUNDIALS_ENABLE_CVODE` |
| `BUILD_CVODES` | `SUNDIALS_ENABLE_CVODES` |
| `BUILD_IDA` | `SUNDIALS_ENABLE_IDA` |
| `BUILD_IDAS` | `SUNDIALS_ENABLE_IDAS` |
| `BUILD_KINSOL` | `SUNDIALS_ENABLE_KINSOL` |
| `ENABLE_MPI` | `SUNDIALS_ENABLE_MPI` |
| `ENABLE_OPENMP` | `SUNDIALS_ENABLE_OPENMP` |
| `ENABLE_OPENMP_DEVICE` | `SUNDIALS_ENABLE_OPENMP_DEVICE` |
| `OPENMP_DEVICE_WORKS` | `SUNDIALS_ENABLE_OPENMP_DEVICE_CHECKS` |
| `ENABLE_PTHREAD` | `SUNDIALS_ENABLE_PTHREAD` |
| `ENABLE_CUDA` | `SUNDIALS_ENABLE_CUDA` |
| `ENABLE_HIP` | `SUNDIALS_ENABLE_HIP` |
| `ENABLE_SYCL` | `SUNDIALS_ENABLE_SYCL` |
| `ENABLE_LAPACK` | `SUNDIALS_ENABLE_LAPACK` |
| `LAPACK_WORKS` | `SUNDIALS_ENABLE_LAPACK_CHECKS` |
| `ENABLE_GINKGO` | `SUNDIALS_ENABLE_GINKGO` |
| `GINKGO_WORKS` | `SUNDIALS_ENABLE_GINKGO_CHECKS` |
| `ENABLE_MAGMA` | `SUNDIALS_ENABLE_MAGMA` |
| `MAGMA_WORKS` | `SUNDIALS_ENABLE_MAGMA_CHECKS` |
| `ENABLE_SUPERLUDIST` | `SUNDIALS_ENABLE_SUPERLUDIST` |
| `SUPERLUDIST_WORKS` | `SUNDIALS_ENABLE_SUPERLUDIST_CHECKS` |
| `ENABLE_SUPERLUMT` | `SUNDIALS_ENABLE_SUPERLUMT` |
| `SUPERLUMT_WORKS` | `SUNDIALS_ENABLE_SUPERLUMT_CHECKS` |
| `ENABLE_KLU` | `SUNDIALS_ENABLE_KLU` |
| `KLU_WORKS` | `SUNDIALS_ENABLE_KLU_CHECKS` |
| `ENABLE_HYPRE` | `SUNDIALS_ENABLE_HYPRE` |
| `HYPRE_WORKS` | `SUNDIALS_ENABLE_HYPRE_CHECKS` |
| `ENABLE_PETSC` | `SUNDIALS_ENABLE_PETSC` |
| `PETSC_WORKS` | `SUNDIALS_ENABLE_PETSC_CHECKS` |
| `ENABLE_TRILINOS` | `SUNDIALS_ENABLE_TRILINOS` |
| `ENABLE_RAJA` | `SUNDIALS_ENABLE_RAJA` |
| `ENABLE_XBRAID` | `SUNDIALS_ENABLE_XBRAID` |
| `XBRAID_WORKS` | `SUNDIALS_ENABLE_XBRAID_CHECKS` |
| `ENABLE_ONEMKL` | `SUNDIALS_ENABLE_ONEMKL` |
| `ONEMKL_WORKS` | `SUNDIALS_ENABLE_ONEMKL_CHECKS` |
| `ENABLE_CALIPER` | `SUNDIALS_ENABLE_CALIPER` |
| `ENABLE_ADIAK` | `SUNDIALS_ENABLE_ADIAK` |
| `ENABLE_KOKKOS` | `SUNDIALS_ENABLE_KOKKOS` |
| `KOKKOS_WORKS` | `SUNDIALS_ENABLE_KOKKOS_CHECKS` |
| `ENABLE_KOKKOS_KERNELS` | `SUNDIALS_ENABLE_KOKKOS_KERNELS` |
| `KOKKOS_KERNELS_WORKS` | `SUNDIALS_ENABLE_KOKKOS_KERNELS_CHECKS` |
| `SUNDIALS_BUILD_WITH_MONITORING` | `SUNDIALS_ENABLE_MONITORING` |
| `SUNDIALS_BUILD_WITH_PROFILING` | `SUNDIALS_ENABLE_PROFILING` |
| `BUILD_BENCHMARKS` | `SUNDIALS_ENABLE_BENCHMARKS` |
| `BENCHMARKS_INSTALL_PATH` | `SUNDIALS_BENCHMARKS_INSTALL_PATH` |
| `ENABLE_ALL_WARNINGS` | `SUNDIALS_ENABLE_ALL_WARNINGS` |
| `ENABLE_WARNINGS_AS_ERRORS` | `CMAKE_COMPILE_WARNING_AS_ERROR` |
| `ENABLE_ADDRESS_SANITIZER` | `SUNDIALS_ENABLE_ADDRESS_SANITIZER` |
| `ENABLE_MEMORY_SANITIZER` | `SUNDIALS_ENABLE_MEMORY_SANITIZER` |
| `ENABLE_LEAK_SANITIZER` | `SUNDIALS_ENABLE_LEAK_SANITIZER` |
| `ENABLE_UNDEFINED_BEHAVIOR_SANITIZER` | `SUNDIALS_ENABLE_UNDEFINED_BEHAVIOR_SANITIZER` |
| `EXAMPLES_ENABLE_C` | `SUNDIALS_EXAMPLES_ENABLE_C` |
| `EXAMPLES_ENABLE_CXX` | `SUNDIALS_EXAMPLES_ENABLE_CXX` |
| `EXAMPLES_ENABLE_F2003` | `SUNDIALS_EXAMPLES_ENABLE_FORTRAN` |
| `EXAMPLES_INSTALL` | `SUNDIALS_EXAMPLES_ENABLE_INSTALL` |
| `EXAMPLES_INSTALL_PATH` | `SUNDIALS_EXAMPLES_INSTALL_PATH` |
| `SUNDIALS_BUILD_PACKAGE_FUSED_KERNELS` | `SUNDIALS_ENABLE_PACKAGE_FUSED_KERNELS` |

## Changes to SUNDIALS in release 7.6.0

### Major Features
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ if(_BUILD_EXAMPLES)
endif()

# Add benchmarks to the build
if(BUILD_BENCHMARKS)
if(SUNDIALS_ENABLE_BENCHMARKS)
include(SundialsSetupBenchmarks)
add_subdirectory(benchmarks)
endif()
Expand Down Expand Up @@ -260,7 +260,7 @@ install(FILES "${PROJECT_BINARY_DIR}/include/sundials/sundials_config.h"
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/sundials")

# install shared Fortran 2003 modules
if(BUILD_FORTRAN_MODULE_INTERFACE)
if(SUNDIALS_ENABLE_FORTRAN)
# While the .mod files get generated for static and shared libraries, they are
# identical. So only install one set of the .mod files.
if(BUILD_STATIC_LIBS)
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ endif()
sundials_option(BENCHMARK_NVECTOR BOOL "NVector benchmarks are on" ON)

# Disable some warnings for benchmarks
if(ENABLE_ALL_WARNINGS)
if(SUNDIALS_ENABLE_ALL_WARNINGS)
set(CMAKE_C_FLAGS
"${CMAKE_C_FLAGS} -Wno-unused-parameter -Wno-unused-function")
set(CMAKE_CXX_FLAGS
Expand All @@ -37,7 +37,7 @@ endif()
# Add specific benchmarks
# ----------------------------------------

if(ENABLE_MPI)
if(SUNDIALS_ENABLE_MPI)
add_subdirectory(diffusion_2D)
add_subdirectory(advection_reaction_3D)
endif()
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/advection_reaction_3D/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
# SUNDIALS Copyright End
# ---------------------------------------------------------------

if(ENABLE_RAJA)
if(SUNDIALS_ENABLE_RAJA)
add_subdirectory(raja)
endif()

if(ENABLE_KOKKOS AND BUILD_NVECTOR_KOKKOS)
if(SUNDIALS_ENABLE_KOKKOS AND SUNDIALS_ENABLE_NVECTOR_KOKKOS)
add_subdirectory(kokkos)
endif()
12 changes: 7 additions & 5 deletions benchmarks/advection_reaction_3D/kokkos/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
# ---------------------------------------------------------------

# Add the build targets for each backend
if(BUILD_ARKODE
AND BUILD_CVODE
AND BUILD_IDA)
if(SUNDIALS_ENABLE_ARKODE
AND SUNDIALS_ENABLE_CVODE
AND SUNDIALS_ENABLE_IDA)
foreach(backend ${KOKKOS_EXAMPLES_BACKENDS})

# set benchmark target name
Expand Down Expand Up @@ -56,12 +56,14 @@ if(BUILD_ARKODE

install(
TARGETS ${benchmark_target}
DESTINATION "${BENCHMARKS_INSTALL_PATH}/advection_reaction_3D/kokkos")
DESTINATION
"${SUNDIALS_BENCHMARKS_INSTALL_PATH}/advection_reaction_3D/kokkos")

install(
FILES README.md ../scripts/compare_error.py ../scripts/compute_error.py
../scripts/pickle_solution_output.py
DESTINATION "${BENCHMARKS_INSTALL_PATH}/advection_reaction_3D/kokkos")
DESTINATION
"${SUNDIALS_BENCHMARKS_INSTALL_PATH}/advection_reaction_3D/kokkos")

endforeach()
endif()
36 changes: 22 additions & 14 deletions benchmarks/advection_reaction_3D/raja/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
# SUNDIALS Copyright End
# ---------------------------------------------------------------

if(BUILD_ARKODE
AND BUILD_CVODE
AND BUILD_IDA)
if(SUNDIALS_ENABLE_ARKODE
AND SUNDIALS_ENABLE_CVODE
AND SUNDIALS_ENABLE_IDA)

if((RAJA_BACKENDS MATCHES "TARGET_OPENMP") OR (RAJA_BACKENDS MATCHES "OPENMP"
))
Expand Down Expand Up @@ -66,12 +66,16 @@ if(BUILD_ARKODE
${MPI_CXX_LIBRARIES}
${OTHER_LIBS})

install(TARGETS advection_reaction_3D_raja
DESTINATION "${BENCHMARKS_INSTALL_PATH}/advection_reaction_3D/raja")
install(
TARGETS advection_reaction_3D_raja
DESTINATION "${SUNDIALS_BENCHMARKS_INSTALL_PATH}/advection_reaction_3D/raja"
)

install(FILES README.md ../scripts/compare_error.py
../scripts/compute_error.py ../scripts/pickle_solution_output.py
DESTINATION "${BENCHMARKS_INSTALL_PATH}/advection_reaction_3D/raja")
install(
FILES README.md ../scripts/compare_error.py ../scripts/compute_error.py
../scripts/pickle_solution_output.py
DESTINATION "${SUNDIALS_BENCHMARKS_INSTALL_PATH}/advection_reaction_3D/raja"
)

foreach(benchmark_tuple ${BENCHMARK_VAR})
list(GET benchmark_tuple 0 benchmark_args)
Expand All @@ -89,7 +93,7 @@ if(BUILD_ARKODE
# MPI + CUDA
# ----------------------------------------------------------------------------

if(BUILD_NVECTOR_CUDA)
if(SUNDIALS_ENABLE_NVECTOR_CUDA)

set_source_files_properties(advection_reaction_3D.cpp PROPERTIES LANGUAGE
CUDA)
Expand Down Expand Up @@ -130,8 +134,10 @@ if(BUILD_ARKODE
target_compile_definitions(advection_reaction_3D_raja_mpicuda
PRIVATE USE_CUDA_NVEC)

install(TARGETS advection_reaction_3D_raja_mpicuda
DESTINATION "${BENCHMARKS_INSTALL_PATH}/advection_reaction_3D/raja")
install(
TARGETS advection_reaction_3D_raja_mpicuda
DESTINATION
"${SUNDIALS_BENCHMARKS_INSTALL_PATH}/advection_reaction_3D/raja")

foreach(benchmark_tuple ${BENCHMARK_VAR})
list(GET benchmark_tuple 0 benchmark_args)
Expand All @@ -150,7 +156,7 @@ if(BUILD_ARKODE
# MPI + HIP
# ----------------------------------------------------------------------------

if(BUILD_NVECTOR_HIP)
if(SUNDIALS_ENABLE_NVECTOR_HIP)

sundials_add_executable(
advection_reaction_3D_raja_mpihip
Expand Down Expand Up @@ -183,8 +189,10 @@ if(BUILD_ARKODE
target_compile_definitions(advection_reaction_3D_raja_mpihip
PRIVATE USE_HIP_NVEC)

install(TARGETS advection_reaction_3D_raja_mpihip
DESTINATION "${BENCHMARKS_INSTALL_PATH}/advection_reaction_3D/raja")
install(
TARGETS advection_reaction_3D_raja_mpihip
DESTINATION
"${SUNDIALS_BENCHMARKS_INSTALL_PATH}/advection_reaction_3D/raja")

foreach(benchmark_tuple ${BENCHMARK_VAR})
list(GET benchmark_tuple 0 benchmark_args)
Expand Down
11 changes: 6 additions & 5 deletions benchmarks/diffusion_2D/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
# SUNDIALS Copyright End
# ------------------------------------------------------------------------------

if(BUILD_ARKODE
OR BUILD_CVODE
OR BUILD_IDA)
if(SUNDIALS_ENABLE_ARKODE
OR SUNDIALS_ENABLE_CVODE
OR SUNDIALS_ENABLE_IDA)

# Shared sources
set(shared_sources diffusion_2D.hpp diffusion_2D.cpp
Expand All @@ -32,10 +32,11 @@ if(BUILD_ARKODE
add_subdirectory(mpi_serial)

# MPI + CUDA/HIP
if(BUILD_NVECTOR_CUDA OR BUILD_NVECTOR_HIP)
if(SUNDIALS_ENABLE_NVECTOR_CUDA OR SUNDIALS_ENABLE_NVECTOR_HIP)
add_subdirectory(mpi_gpu)
endif()

install(FILES README.md DESTINATION "${BENCHMARKS_INSTALL_PATH}/diffusion_2D")
install(FILES README.md
DESTINATION "${SUNDIALS_BENCHMARKS_INSTALL_PATH}/diffusion_2D")

endif()
2 changes: 1 addition & 1 deletion benchmarks/diffusion_2D/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ installation guide for more details on configuring, building, and installing.
## Running

Based on the configuration, executables for each integrator and backend option
are built and installed in `<BENCHMARKS_INSTALL_PATH>/diffusion_2D`. The
are built and installed in `<SUNDIALS_BENCHMARKS_INSTALL_PATH>/diffusion_2D`. The
executables follow the naming convention `<package>_diffusion_2D_<parallelism>`
where `<package>` is `arkode`, `cvode`, or `ida` and `<parallelism>` is `mpi` for
MPI only parallelism, `mpicuda` for MPI + CUDA, and `mpihip` for MPI + HIP.
Expand Down
20 changes: 10 additions & 10 deletions benchmarks/diffusion_2D/mpi_gpu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,29 @@
# list of tests
set(tests)

if(BUILD_ARKODE)
if(BUILD_NVECTOR_CUDA)
if(SUNDIALS_ENABLE_ARKODE)
if(SUNDIALS_ENABLE_NVECTOR_CUDA)
list(APPEND tests "arkode\;BENCHMARK_ODE\;USE_CUDA")
endif()
if(BUILD_NVECTOR_HIP)
if(SUNDIALS_ENABLE_NVECTOR_HIP)
list(APPEND tests "arkode\;BENCHMARK_ODE\;USE_HIP")
endif()
endif()

if(BUILD_CVODE)
if(BUILD_NVECTOR_CUDA)
if(SUNDIALS_ENABLE_CVODE)
if(SUNDIALS_ENABLE_NVECTOR_CUDA)
list(APPEND tests "cvode\;BENCHMARK_ODE\;USE_CUDA")
endif()
if(BUILD_NVECTOR_HIP)
if(SUNDIALS_ENABLE_NVECTOR_HIP)
list(APPEND tests "cvode\;BENCHMARK_ODE\;USE_HIP")
endif()
endif()

if(BUILD_IDA)
if(BUILD_NVECTOR_CUDA)
if(SUNDIALS_ENABLE_IDA)
if(SUNDIALS_ENABLE_NVECTOR_CUDA)
list(APPEND tests "ida\;BENCHMARK_DAE\;USE_CUDA")
endif()
if(BUILD_NVECTOR_HIP)
if(SUNDIALS_ENABLE_NVECTOR_HIP)
list(APPEND tests "ida\;BENCHMARK_DAE\;USE_HIP")
endif()
endif()
Expand Down Expand Up @@ -113,6 +113,6 @@ foreach(test_tuple ${tests})
target_link_libraries(${target} PRIVATE ${MPI_CXX_LIBRARIES})

install(TARGETS ${target}
DESTINATION "${BENCHMARKS_INSTALL_PATH}/diffusion_2D")
DESTINATION "${SUNDIALS_BENCHMARKS_INSTALL_PATH}/diffusion_2D")

endforeach()
10 changes: 5 additions & 5 deletions benchmarks/diffusion_2D/mpi_serial/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
# list of tests
set(tests)

if(BUILD_ARKODE)
if(SUNDIALS_ENABLE_ARKODE)
list(APPEND tests "arkode\;BENCHMARK_ODE")
endif()

if(BUILD_CVODE)
if(SUNDIALS_ENABLE_CVODE)
list(APPEND tests "cvode\;BENCHMARK_ODE")
endif()

if(BUILD_IDA)
if(SUNDIALS_ENABLE_IDA)
list(APPEND tests "ida\;BENCHMARK_DAE")
endif()

Expand Down Expand Up @@ -57,14 +57,14 @@ foreach(test_tuple ${tests})
target_link_libraries(${target} PRIVATE sundials_${package}
sundials_nvecparallel MPI::MPI_CXX)

if(BUILD_SUNLINSOL_SUPERLUDIST)
if(SUNDIALS_ENABLE_SUNLINSOL_SUPERLUDIST)
target_compile_definitions(${target} PRIVATE USE_SUPERLU_DIST)
target_link_libraries(${target} PRIVATE sundials_sunlinsolsuperludist
sundials_sunmatrixslunrloc)
endif()

install(TARGETS ${target}
DESTINATION "${BENCHMARKS_INSTALL_PATH}/diffusion_2D")
DESTINATION "${SUNDIALS_BENCHMARKS_INSTALL_PATH}/diffusion_2D")

sundials_add_benchmark(${target} ${target} diffusion_2D
NUM_CORES ${SUNDIALS_BENCHMARK_NUM_CPUS})
Expand Down
Loading
Loading