Skip to content

Commit

Permalink
apply formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gardner48 committed Jun 21, 2024
1 parent 3b9fd8e commit 52e53c4
Show file tree
Hide file tree
Showing 233 changed files with 9,039 additions and 5,133 deletions.
25 changes: 19 additions & 6 deletions benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,23 @@
# benchmarks level CMakeLists.txt for SUNDIALS
# ---------------------------------------------------------------

if(NOT (CMAKE_BUILD_TYPE STREQUAL "Release" OR
CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo"))
message(WARNING "SUNDIALS is not being built in a \"Release\" mode, "
"benchmark performance will be affected")
if(
NOT
(
CMAKE_BUILD_TYPE
STREQUAL
"Release"
OR
CMAKE_BUILD_TYPE
STREQUAL
"RelWithDebInfo"
)
)
message(
WARNING
"SUNDIALS is not being built in a \"Release\" mode, "
"benchmark performance will be affected"
)
endif()

sundials_option(BENCHMARK_NVECTOR BOOL "NVector benchmarks are on" ON)
Expand All @@ -33,8 +46,8 @@ endif()
#----------------------------------------

if(ENABLE_MPI)
add_subdirectory(diffusion_2D)
add_subdirectory(advection_reaction_3D)
add_subdirectory(diffusion_2D)
add_subdirectory(advection_reaction_3D)
endif()

# Add the nvector benchmarks
Expand Down
1 change: 0 additions & 1 deletion benchmarks/advection_reaction_3D/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ endif()
if(ENABLE_KOKKOS AND BUILD_NVECTOR_KOKKOS)
add_subdirectory(kokkos)
endif()

48 changes: 30 additions & 18 deletions benchmarks/advection_reaction_3D/kokkos/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,47 +15,59 @@
# Add the build targets for each backend
if(BUILD_ARKODE AND BUILD_CVODE AND BUILD_IDA)
foreach(backend ${KOKKOS_EXAMPLES_BACKENDS})

# set benchmark target name
set(benchmark_target "advection_reaction_3D_kokkos.${backend}")

# benchmark source files
add_executable(${benchmark_target}
add_executable(
${benchmark_target}
advection_reaction_3D.cpp
arkode_driver.cpp
cvode_driver.cpp
ida_driver.cpp
rhs3D.hpp
ParallelGrid.hpp
check_retval.h)
check_retval.h
)

# which backend to use
target_compile_definitions(${benchmark_target} PRIVATE USE_${backend})
# which backend to use
target_compile_definitions(${benchmark_target} PRIVATE USE_${backend})

# directories to include
target_include_directories(${benchmark_target}
PRIVATE
# directories to include
target_include_directories(
${benchmark_target}
PRIVATE
${PROJECT_SOURCE_DIR}/utilities
${MPI_CXX_INCLUDE_DIRS}
)
)

# libraries to link against
target_link_libraries(${benchmark_target}
PRIVATE
# libraries to link against
target_link_libraries(
${benchmark_target}
PRIVATE
sundials_arkode
sundials_cvode
sundials_ida
sundials_nvecmpiplusx
sundials_nveckokkos
${MPI_CXX_LIBRARIES}
${EXE_EXTRA_LINK_LIBS}
)

install(TARGETS ${benchmark_target}
DESTINATION "${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")
install(
TARGETS
${benchmark_target}
DESTINATION
"${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"
)
endforeach()
endif()
Loading

0 comments on commit 52e53c4

Please sign in to comment.