Skip to content

Commit

Permalink
Port Atomic MinMax tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Feb 6, 2023
1 parent 063fe9a commit 4b8e0e1
Show file tree
Hide file tree
Showing 2 changed files with 306 additions and 206 deletions.
17 changes: 17 additions & 0 deletions core/perf_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ IF(KOKKOS_ENABLE_TESTS)
ENDIF()

# Find or download google/benchmark library
IF(NOT Kokkos_ENABLE_BENCHMARKS)
RETURN()
ENDIF()

IF (KOKKOS_HAS_TRILINOS)
message(FATAL_ERROR "Benchmarks are not supported when building as part of Trilinos")
ENDIF()

find_package(benchmark QUIET)
IF(benchmark_FOUND)
MESSAGE(STATUS "Using google benchmark found in ${benchmark_DIR}")
Expand Down Expand Up @@ -209,3 +217,12 @@ KOKKOS_ADD_BENCHMARK(
PerformanceTest_Benchmark
SOURCES ${BENCHMARK_SOURCES}
)

IF(NOT KOKKOS_ENABLE_CUDA OR KOKKOS_ENABLE_CUDA_LAMBDA)
KOKKOS_ADD_BENCHMARK(
Benchmark_Atomic_MinMax
SOURCES
Benchmark_Context.cpp
test_atomic_minmax_simple.cpp
)
ENDIF()
Loading

0 comments on commit 4b8e0e1

Please sign in to comment.