Skip to content

Commit

Permalink
link to core in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
balos1 committed Nov 14, 2023
1 parent 6c6462e commit 29e5178
Show file tree
Hide file tree
Showing 15 changed files with 74 additions and 28 deletions.
7 changes: 5 additions & 2 deletions examples/templates/cmakelists_openmp_C_ex.in
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,13 @@ set(SUNDIALS_LIBRARY_DIR
@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
CACHE PATH "Location of SUNDIALS libraries")

# Find the SUNDIALS libraries
find_library(SUNDIALS_CORE_LIB
sundials_core ${SUNDIALS_LIBRARY_DIR}
DOC "SUNDIALS core library")

find_library(SUNDIALS_SOLVER_LIB
@SOLVER_LIB@ ${SUNDIALS_LIBRARY_DIR}
DOC "@SOLVER@ library")

find_library(SUNDIALS_NVEC_LIB
sundials_nvecopenmp ${SUNDIALS_LIBRARY_DIR}
DOC "NVECTOR_OPENMP library")
Expand All @@ -83,6 +85,7 @@ endif()
# List of SUNDIALS libraries
set(SUNDIALS_LIBRARIES
-L${SUNDIALS_LIBRARY_DIR}
${SUNDIALS_CORE_LIB}
${SUNDIALS_SOLVER_LIB}
${SUNDIALS_NVEC_LIB}
${SUNDIALS_EXTRA_LIBS})
Expand Down
7 changes: 5 additions & 2 deletions examples/templates/cmakelists_openmpdev_ex.in
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ set(SUNDIALS_LIBRARY_DIR
@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
CACHE PATH "Location of SUNDIALS libraries")

# Find the SUNDIALS libraries
find_library(SUNDIALS_CORE_LIB
sundials_core ${SUNDIALS_LIBRARY_DIR}
DOC "SUNDIALS core library")

find_library(SUNDIALS_SOLVER_LIB
@SOLVER_LIB@ ${SUNDIALS_LIBRARY_DIR}
DOC "@SOLVER@ library")

find_library(SUNDIALS_NVEC_LIB
sundials_nvecopenmp ${SUNDIALS_LIBRARY_DIR}
DOC "NVECTOR OpenMP Device Offloading library")
Expand All @@ -82,6 +84,7 @@ endif()
# List of SUNDIALS libraries
set(SUNDIALS_LIBRARIES
-L${SUNDIALS_LIBRARY_DIR}
${SUNDIALS_CORE_LIB}
${SUNDIALS_SOLVER_LIB}
${SUNDIALS_NVEC_LIB}
${SUNDIALS_EXTRA_LIB})
Expand Down
7 changes: 5 additions & 2 deletions examples/templates/cmakelists_parallel_CUDA_ex.in
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,13 @@ set(SUNDIALS_LIBRARY_DIR
@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
CACHE PATH "Location of SUNDIALS libraries")

# Find the SUNDIALS libraries
find_library(SUNDIALS_CORE_LIB
sundials_core ${SUNDIALS_LIBRARY_DIR}
DOC "SUNDIALS core library")

find_library(SUNDIALS_SOLVER_LIB
@SOLVER_LIB@ ${SUNDIALS_LIBRARY_DIR}
DOC "@SOLVER@ library")

find_library(SUNDIALS_NVEC_LIB
sundials_nveccuda ${SUNDIALS_LIBRARY_DIR}
DOC "NVECTOR_CUDA library")
Expand All @@ -97,6 +99,7 @@ endif()
# List of SUNDIALS libraries
set(SUNDIALS_LIBRARIES
-L${SUNDIALS_LIBRARY_DIR}
${SUNDIALS_CORE_LIB}
${SUNDIALS_SOLVER_LIB}
${SUNDIALS_NVEC_LIB}
${SUNDIALS_MPIPLUSX_LIB}
Expand Down
7 changes: 5 additions & 2 deletions examples/templates/cmakelists_parallel_CXX_ex.in
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@ set(SUNDIALS_LIBRARY_DIR
@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
CACHE PATH "Location of SUNDIALS libraries")

# Find the SUNDIALS libraries
find_library(SUNDIALS_CORE_LIB
sundials_core ${SUNDIALS_LIBRARY_DIR}
DOC "SUNDIALS core library")

find_library(SUNDIALS_SOLVER_LIB
@SOLVER_LIB@ ${SUNDIALS_LIBRARY_DIR}
DOC "@SOLVER@ library")

find_library(SUNDIALS_NVECPAR_LIB
sundials_nvecparallel ${SUNDIALS_LIBRARY_DIR}
DOC "NVECTOR_PARALLEL library")
Expand Down Expand Up @@ -84,6 +86,7 @@ endif()
# List of SUNDIALS libraries
set(SUNDIALS_LIBRARIES
-L${SUNDIALS_LIBRARY_DIR}
${SUNDIALS_CORE_LIB}
${SUNDIALS_SOLVER_LIB}
${SUNDIALS_NVECPAR_LIB}
${SUNDIALS_NVECSER_LIB}
Expand Down
7 changes: 5 additions & 2 deletions examples/templates/cmakelists_parallel_C_ex.in
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ set(SUNDIALS_LIBRARY_DIR
@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
CACHE PATH "Location of SUNDIALS libraries")

# Find the SUNDIALS libraries
find_library(SUNDIALS_CORE_LIB
sundials_core ${SUNDIALS_LIBRARY_DIR}
DOC "SUNDIALS core library")

find_library(SUNDIALS_SOLVER_LIB
@SOLVER_LIB@ ${SUNDIALS_LIBRARY_DIR}
DOC "@SOLVER@ library")

find_library(SUNDIALS_NVECPAR_LIB
sundials_nvecparallel ${SUNDIALS_LIBRARY_DIR}
DOC "NVECTOR_PARALLEL library")
Expand Down Expand Up @@ -85,6 +87,7 @@ endif()
# List of SUNDIALS libraries
set(SUNDIALS_LIBRARIES
-L${SUNDIALS_LIBRARY_DIR}
${SUNDIALS_CORE_LIB}
${SUNDIALS_SOLVER_LIB}
${SUNDIALS_NVECPAR_LIB}
${SUNDIALS_NVECSER_LIB}
Expand Down
7 changes: 5 additions & 2 deletions examples/templates/cmakelists_parallel_RAJA_ex.in
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,13 @@ set(SUNDIALS_LIBRARY_DIR
@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
CACHE PATH "Location of SUNDIALS libraries")

# Find the SUNDIALS libraries
find_library(SUNDIALS_CORE_LIB
sundials_core ${SUNDIALS_LIBRARY_DIR}
DOC "SUNDIALS core library")

find_library(SUNDIALS_SOLVER_LIB
@SOLVER_LIB@ ${SUNDIALS_LIBRARY_DIR}
DOC "@SOLVER@ library")

find_library(SUNDIALS_NVEC_LIB
sundials_nveccudaraja ${SUNDIALS_LIBRARY_DIR}
DOC "NVECTOR_RAJA library")
Expand All @@ -97,6 +99,7 @@ endif()
# List of SUNDIALS libraries
set(SUNDIALS_LIBRARIES
-L${SUNDIALS_LIBRARY_DIR}
${SUNDIALS_CORE_LIB}
${SUNDIALS_SOLVER_LIB}
${SUNDIALS_NVEC_LIB}
${SUNDIALS_MPIPLUSX_LIB}
Expand Down
7 changes: 5 additions & 2 deletions examples/templates/cmakelists_parhyp_CXX_ex.in
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@ set(SUNDIALS_LIBRARY_DIR
@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
CACHE PATH "Location of SUNDIALS libraries")

# Find the SUNDIALS libraries
find_library(SUNDIALS_CORE_LIB
sundials_core ${SUNDIALS_LIBRARY_DIR}
DOC "SUNDIALS core library")

find_library(SUNDIALS_SOLVER_LIB
@SOLVER_LIB@ ${SUNDIALS_LIBRARY_DIR}
DOC "@SOLVER@ library")

find_library(SUNDIALS_NVEC_LIB
sundials_nvecparallel ${SUNDIALS_LIBRARY_DIR}
DOC "NVECTOR_PARALLEL library")
Expand All @@ -76,6 +78,7 @@ endif()
# List of SUNDIALS libraries
set(SUNDIALS_LIBRARIES
-L${SUNDIALS_LIBRARY_DIR}
${SUNDIALS_CORE_LIB}
${SUNDIALS_SOLVER_LIB}
${SUNDIALS_NVEC_LIB}
${SUNDIALS_NVECPH_LIB}
Expand Down
7 changes: 5 additions & 2 deletions examples/templates/cmakelists_parhyp_C_ex.in
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ set(SUNDIALS_LIBRARY_DIR
@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
CACHE PATH "Location of SUNDIALS libraries")

# Find the SUNDIALS libraries
find_library(SUNDIALS_CORE_LIB
sundials_core ${SUNDIALS_LIBRARY_DIR}
DOC "SUNDIALS core library")

find_library(SUNDIALS_SOLVER_LIB
@SOLVER_LIB@ ${SUNDIALS_LIBRARY_DIR}
DOC "@SOLVER@ library")

find_library(SUNDIALS_NVEC_LIB
sundials_nvecparhyp ${SUNDIALS_LIBRARY_DIR}
DOC "NVECTOR_PARHYP library")
Expand All @@ -73,6 +75,7 @@ endif()
# List of SUNDIALS libraries
set(SUNDIALS_LIBRARIES
-L${SUNDIALS_LIBRARY_DIR}
${SUNDIALS_CORE_LIB}
${SUNDIALS_SOLVER_LIB}
${SUNDIALS_NVEC_LIB}
${SUNDIALS_EXTRA_LIBS})
Expand Down
7 changes: 5 additions & 2 deletions examples/templates/cmakelists_pthreads_C_ex.in
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@ set(SUNDIALS_LIBRARY_DIR
@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
CACHE PATH "Location of SUNDIALS libraries")

# Find the SUNDIALS libraries
find_library(SUNDIALS_CORE_LIB
sundials_core ${SUNDIALS_LIBRARY_DIR}
DOC "SUNDIALS core library")

find_library(SUNDIALS_SOLVER_LIB
@SOLVER_LIB@ ${SUNDIALS_LIBRARY_DIR}
DOC "@SOLVER@ library")

find_library(SUNDIALS_NVEC_LIB
sundials_nvecpthreads ${SUNDIALS_LIBRARY_DIR}
DOC "NVECTOR_PTHREAD library")
Expand All @@ -79,6 +81,7 @@ endif()
# List of SUNDIALS libraries
set(SUNDIALS_LIBRARIES
-L${SUNDIALS_LIBRARY_DIR}
${SUNDIALS_CORE_LIB}
${SUNDIALS_SOLVER_LIB}
${SUNDIALS_NVEC_LIB}
${SUNDIALS_EXTRA_LIBS})
Expand Down
7 changes: 5 additions & 2 deletions examples/templates/cmakelists_serial_CUDA_ex.in
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,13 @@ set(SUNDIALS_LIBRARY_DIR
@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
CACHE PATH "Location of SUNDIALS libraries")

# Find the SUNDIALS libraries
find_library(SUNDIALS_CORE_LIB
sundials_core ${SUNDIALS_LIBRARY_DIR}
DOC "SUNDIALS core library")

find_library(SUNDIALS_SOLVER_LIB
@SOLVER_LIB@ ${SUNDIALS_LIBRARY_DIR}
DOC "@SOLVER@ library")

find_library(SUNDIALS_NVEC_LIB
sundials_nveccuda ${SUNDIALS_LIBRARY_DIR}
DOC "NVECTOR_CUDA library")
Expand Down Expand Up @@ -116,6 +118,7 @@ set(SUNDIALS_EXTRA_LIBS -L${SUNDIALS_LIBRARY_DIR} @LIBS@ CACHE STRING "Additiona
# List of SUNDIALS libraries
set(SUNDIALS_LIBRARIES
-L${SUNDIALS_LIBRARY_DIR}
${SUNDIALS_CORE_LIB}
${SUNDIALS_SOLVER_LIB}
${SUNDIALS_NVEC_LIB}
${SUNDIALS_CUSPARSEMAT_LIB}
Expand Down
5 changes: 5 additions & 0 deletions examples/templates/cmakelists_serial_CXX_ex.in
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ set(SUNDIALS_LIBRARY_DIR
CACHE PATH "Location of SUNDIALS libraries")

# Find the SUNDIALS libraries
find_library(SUNDIALS_CORE_LIB
sundials_core ${SUNDIALS_LIBRARY_DIR}
DOC "SUNDIALS core library")

find_library(SUNDIALS_SOLVER_LIB
@SOLVER_LIB@ ${SUNDIALS_LIBRARY_DIR}
DOC "@SOLVER@ library")
Expand All @@ -77,6 +81,7 @@ endif()
# List of SUNDIALS libraries
set(SUNDIALS_LIBRARIES
-L${SUNDIALS_LIBRARY_DIR}
${SUNDIALS_CORE_LIB}
${SUNDIALS_SOLVER_LIB}
${SUNDIALS_NVEC_LIB}
${SUNDIALS_MANYVEC_LIB}
Expand Down
7 changes: 5 additions & 2 deletions examples/templates/cmakelists_serial_C_ex.in
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ set(SUNDIALS_LIBRARY_DIR
@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
CACHE PATH "Location of SUNDIALS libraries")

# Find the SUNDIALS libraries
find_library(SUNDIALS_CORE_LIB
sundials_core ${SUNDIALS_LIBRARY_DIR}
DOC "SUNDIALS core library")

find_library(SUNDIALS_SOLVER_LIB
@SOLVER_LIB@ ${SUNDIALS_LIBRARY_DIR}
DOC "@SOLVER@ library")

find_library(SUNDIALS_NVEC_LIB
sundials_nvecserial ${SUNDIALS_LIBRARY_DIR}
DOC "NVECTOR_SERIAL library")
Expand All @@ -78,6 +80,7 @@ endif()
# List of SUNDIALS libraries
set(SUNDIALS_LIBRARIES
-L${SUNDIALS_LIBRARY_DIR}
${SUNDIALS_CORE_LIB}
${SUNDIALS_SOLVER_LIB}
${SUNDIALS_NVEC_LIB}
${SUNDIALS_MANYVEC_LIB}
Expand Down
6 changes: 4 additions & 2 deletions examples/templates/cmakelists_serial_F2003_ex.in
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ set(SUNDIALS_LIBRARY_DIR
@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
CACHE PATH "Location of SUNDIALS libraries")

# Find the SUNDIALS libraries
find_library(SUNDIALS_CORE_LIB
sundials_core ${SUNDIALS_LIBRARY_DIR}
DOC "SUNDIALS core library")

find_library(SUNDIALS_SOLVER_LIB
@SOLVER_LIB@ ${SUNDIALS_LIBRARY_DIR}
DOC "@SOLVER@ library")

find_library(SUNDIALS_SOLVER_FLIB
@SOLVER_FLIB@ ${SUNDIALS_LIBRARY_DIR}
DOC "@SOLVER@ Fortran-C library")
Expand Down
7 changes: 5 additions & 2 deletions examples/templates/cmakelists_serial_RAJA_ex.in
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,13 @@ set(SUNDIALS_LIBRARY_DIR
@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
CACHE PATH "Location of SUNDIALS libraries")

# Find the SUNDIALS libraries
find_library(SUNDIALS_CORE_LIB
sundials_core ${SUNDIALS_LIBRARY_DIR}
DOC "SUNDIALS core library")

find_library(SUNDIALS_SOLVER_LIB
@SOLVER_LIB@ ${SUNDIALS_LIBRARY_DIR}
DOC "@SOLVER@ library")

find_library(SUNDIALS_NVEC_LIB
sundials_nveccudaraja ${SUNDIALS_LIBRARY_DIR}
DOC "NVECTOR_RAJA library")
Expand All @@ -93,6 +95,7 @@ endif()
# List of SUNDIALS libraries
set(SUNDIALS_LIBRARIES
-L${SUNDIALS_LIBRARY_DIR}
${SUNDIALS_CORE_LIB}
${SUNDIALS_SOLVER_LIB}
${SUNDIALS_NVEC_LIB}
${SUNDIALS_EXTRA_LIBS})
Expand Down
7 changes: 5 additions & 2 deletions examples/templates/cmakelists_trilinos_CXX_ex.in
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,13 @@ set(SUNDIALS_LIBRARY_DIR
@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
CACHE PATH "Location of SUNDIALS libraries")

# Find the SUNDIALS libraries
find_library(SUNDIALS_CORE_LIB
sundials_core ${SUNDIALS_LIBRARY_DIR}
DOC "SUNDIALS core library")

find_library(SUNDIALS_SOLVER_LIB
@SOLVER_LIB@ ${SUNDIALS_LIBRARY_DIR}
DOC "@SOLVER@ library")

find_library(SUNDIALS_NVEC_LIB
sundials_nvectrilinos ${SUNDIALS_LIBRARY_DIR}
DOC "NVECTOR_TRILINOS library")
Expand All @@ -85,6 +87,7 @@ endif()
# List of SUNDIALS libraries
set(SUNDIALS_LIBRARIES
-L${SUNDIALS_LIBRARY_DIR}
${SUNDIALS_CORE_LIB}
${SUNDIALS_SOLVER_LIB}
${SUNDIALS_NVEC_LIB}
${SUNDIALS_EXTRA_LIBS})
Expand Down

0 comments on commit 29e5178

Please sign in to comment.