Skip to content

Commit

Permalink
apply formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gardner48 committed Jun 29, 2024
1 parent c9d10fd commit 36b79b5
Show file tree
Hide file tree
Showing 251 changed files with 2,188 additions and 4,476 deletions.
42 changes: 14 additions & 28 deletions benchmarks/advection_reaction_3D/raja/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,11 @@ if(BUILD_ARKODE
list(GET benchmark_tuple 1 identifier)

sundials_add_benchmark(
advection_reaction_3D_raja
advection_reaction_3D_raja
advection_reaction_3D_raja advection_reaction_3D_raja
advection_reaction_3D
NUM_CORES
${SUNDIALS_BENCHMARK_NUM_CPUS}
BENCHMARK_ARGS
${benchmark_args}
IDENTIFIER
${identifier})
NUM_CORES ${SUNDIALS_BENCHMARK_NUM_CPUS}
BENCHMARK_ARGS ${benchmark_args}
IDENTIFIER ${identifier})
endforeach()

# ----------------------------------------------------------------------------
Expand Down Expand Up @@ -139,16 +135,11 @@ if(BUILD_ARKODE
list(GET benchmark_tuple 1 identifier)

sundials_add_benchmark(
advection_reaction_3D_raja_mpicuda
advection_reaction_3D_raja_mpicuda
advection_reaction_3D
ENABLE_GPU
NUM_CORES
${SUNDIALS_BENCHMARK_NUM_GPUS}
BENCHMARK_ARGS
${benchmark_args}
IDENTIFIER
${identifier})
advection_reaction_3D_raja_mpicuda advection_reaction_3D_raja_mpicuda
advection_reaction_3D ENABLE_GPU
NUM_CORES ${SUNDIALS_BENCHMARK_NUM_GPUS}
BENCHMARK_ARGS ${benchmark_args}
IDENTIFIER ${identifier})
endforeach()
endif()

Expand Down Expand Up @@ -197,16 +188,11 @@ if(BUILD_ARKODE
list(GET benchmark_tuple 1 identifier)

sundials_add_benchmark(
advection_reaction_3D_raja_mpihip
advection_reaction_3D_raja_mpihip
advection_reaction_3D
ENABLE_GPU
NUM_CORES
${SUNDIALS_BENCHMARK_NUM_GPUS}
BENCHMARK_ARGS
${benchmark_args}
IDENTIFIER
${identifier})
advection_reaction_3D_raja_mpihip advection_reaction_3D_raja_mpihip
advection_reaction_3D ENABLE_GPU
NUM_CORES ${SUNDIALS_BENCHMARK_NUM_GPUS}
BENCHMARK_ARGS ${benchmark_args}
IDENTIFIER ${identifier})
endforeach()
endif()
endif()
4 changes: 2 additions & 2 deletions benchmarks/diffusion_2D/mpi_serial/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ foreach(test_tuple ${tests})
install(TARGETS ${target}
DESTINATION "${BENCHMARKS_INSTALL_PATH}/diffusion_2D")

sundials_add_benchmark(${target} ${target} diffusion_2D NUM_CORES
${SUNDIALS_BENCHMARK_NUM_CPUS})
sundials_add_benchmark(${target} ${target} diffusion_2D
NUM_CORES ${SUNDIALS_BENCHMARK_NUM_CPUS})

endforeach()
9 changes: 3 additions & 6 deletions benchmarks/nvector/cuda/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ message(STATUS "Added CUDA NVECTOR benchmark")

sundials_add_nvector_benchmark(
nvector_cuda_benchmark
SOURCES
test_nvector_performance_cuda.cu
SUNDIALS_TARGETS
sundials_nveccuda
INSTALL_SUBDIR
nvector/cuda)
SOURCES test_nvector_performance_cuda.cu
SUNDIALS_TARGETS sundials_nveccuda
INSTALL_SUBDIR nvector/cuda)
9 changes: 3 additions & 6 deletions benchmarks/nvector/hip/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ message(STATUS "Added HIP NVECTOR benchmark")

sundials_add_nvector_benchmark(
nvector_hip_benchmark
SOURCES
test_nvector_performance_hip.cpp
SUNDIALS_TARGETS
sundials_nvechip
INSTALL_SUBDIR
nvector/hip)
SOURCES test_nvector_performance_hip.cpp
SUNDIALS_TARGETS sundials_nvechip
INSTALL_SUBDIR nvector/hip)
10 changes: 3 additions & 7 deletions benchmarks/nvector/kokkos/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,9 @@ foreach(backend ${KOKKOS_EXAMPLES_BACKENDS})

sundials_add_nvector_benchmark(
test_nvector_performance_kokkos.${backend}
SOURCES
test_nvector_performance_kokkos.cpp
SUNDIALS_TARGETS
sundials_core
sundials_nveckokkos
INSTALL_SUBDIR
nvector/kokkos)
SOURCES test_nvector_performance_kokkos.cpp
SUNDIALS_TARGETS sundials_core sundials_nveckokkos
INSTALL_SUBDIR nvector/kokkos)

target_compile_definitions(test_nvector_performance_kokkos.${backend}
PRIVATE USE_${backend})
Expand Down
13 changes: 4 additions & 9 deletions benchmarks/nvector/mpiplusx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,7 @@ message(STATUS "Added MPIPlusX NVECTOR benchmark")

sundials_add_nvector_benchmark(
nvector_mpiplusx_benchmark
SOURCES
test_nvector_performance_mpiplusx.c
SUNDIALS_TARGETS
sundials_nvecserial
sundials_nvecmpiplusx
LINK_LIBRARIES
MPI::MPI_CXX
INSTALL_SUBDIR
nvector/mpiplusx)
SOURCES test_nvector_performance_mpiplusx.c
SUNDIALS_TARGETS sundials_nvecserial sundials_nvecmpiplusx
LINK_LIBRARIES MPI::MPI_CXX
INSTALL_SUBDIR nvector/mpiplusx)
9 changes: 3 additions & 6 deletions benchmarks/nvector/openmp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ message(STATUS "Added OpenMP NVECTOR benchmark")

sundials_add_nvector_benchmark(
nvector_openmp_benchmark
SOURCES
test_nvector_performance_openmp.c
SUNDIALS_TARGETS
sundials_nvecopenmp
INSTALL_SUBDIR
nvector/openmp)
SOURCES test_nvector_performance_openmp.c
SUNDIALS_TARGETS sundials_nvecopenmp
INSTALL_SUBDIR nvector/openmp)
12 changes: 4 additions & 8 deletions benchmarks/nvector/parallel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ message(STATUS "Added Parallel NVECTOR benchmark")

sundials_add_nvector_benchmark(
nvector_parallel_benchmark
SOURCES
test_nvector_performance_parallel.c
SUNDIALS_TARGETS
sundials_nvecparallel
LINK_LIBRARIES
MPI::MPI_CXX
INSTALL_SUBDIR
nvector/parallel)
SOURCES test_nvector_performance_parallel.c
SUNDIALS_TARGETS sundials_nvecparallel
LINK_LIBRARIES MPI::MPI_CXX
INSTALL_SUBDIR nvector/parallel)
13 changes: 4 additions & 9 deletions benchmarks/nvector/parhyp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@ message(STATUS "Added hypre NVECTOR benchmark")

sundials_add_nvector_benchmark(
nvector_parhyp_benchmark
SOURCES
test_nvector_performance_parhyp.c
SUNDIALS_TARGETS
sundials_nvecparhyp
LINK_LIBRARIES
MPI::MPI_C
SUNDIALS::HYPRE
INSTALL_SUBDIR
nvector/parhyp)
SOURCES test_nvector_performance_parhyp.c
SUNDIALS_TARGETS sundials_nvecparhyp
LINK_LIBRARIES MPI::MPI_C SUNDIALS::HYPRE
INSTALL_SUBDIR nvector/parhyp)
14 changes: 4 additions & 10 deletions benchmarks/nvector/petsc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,7 @@ message(STATUS "Added PETSc NVECTOR benchmark")

sundials_add_nvector_benchmark(
nvector_petsc_benchmark
SOURCES
test_nvector_performance_petsc.c
SUNDIALS_TARGETS
sundials_nvecpetsc
LINK_LIBRARIES
MPI::MPI_C
PUBLIC
SUNDIALS::PETSC
INSTALL_SUBDIR
nvector/petsc)
SOURCES test_nvector_performance_petsc.c
SUNDIALS_TARGETS sundials_nvecpetsc
LINK_LIBRARIES MPI::MPI_C PUBLIC SUNDIALS::PETSC
INSTALL_SUBDIR nvector/petsc)
12 changes: 4 additions & 8 deletions benchmarks/nvector/pthreads/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ message(STATUS "Added PThreads NVECTOR benchmark")

sundials_add_nvector_benchmark(
nvector_pthreads_benchmark
SOURCES
test_nvector_performance_pthreads.c
SUNDIALS_TARGETS
sundials_nvecpthreads
LINK_LIBRARIES
Threads::Threads
INSTALL_SUBDIR
nvector/pthreads)
SOURCES test_nvector_performance_pthreads.c
SUNDIALS_TARGETS sundials_nvecpthreads
LINK_LIBRARIES Threads::Threads
INSTALL_SUBDIR nvector/pthreads)
3 changes: 2 additions & 1 deletion benchmarks/nvector/raja/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ foreach(backend ${SUNDIALS_RAJA_BACKENDS})
endif()

sundials_add_nvector_benchmark(
${example_target} SOURCES test_nvector_performance_raja.cpp
${example_target}
SOURCES test_nvector_performance_raja.cpp
SUNDIALS_TARGETS sundials_nvecraja)

target_compile_definitions(${example_target} PRIVATE ${_defines})
Expand Down
9 changes: 3 additions & 6 deletions benchmarks/nvector/serial/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ message(STATUS "Added Serial NVECTOR benchmark")

sundials_add_nvector_benchmark(
nvector_serial_benchmark
SOURCES
test_nvector_performance_serial.c
SUNDIALS_TARGETS
sundials_nvecserial
INSTALL_SUBDIR
nvector/serial)
SOURCES test_nvector_performance_serial.c
SUNDIALS_TARGETS sundials_nvecserial
INSTALL_SUBDIR nvector/serial)
9 changes: 3 additions & 6 deletions benchmarks/nvector/sycl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ set(BENCHMARKS_DIR ${PROJECT_SOURCE_DIR}/benchmarks)

sundials_add_nvector_benchmark(
test_nvector_performance_sycl
SOURCES
test_nvector_performance_sycl.cpp
SUNDIALS_TARGETS
sundials_nvecsycl
INSTALL_SUBDIR
nvector/sycl)
SOURCES test_nvector_performance_sycl.cpp
SUNDIALS_TARGETS sundials_nvecsycl
INSTALL_SUBDIR nvector/sycl)
Loading

0 comments on commit 36b79b5

Please sign in to comment.