Skip to content

Commit

Permalink
benchmark/gups: use CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
cwpearson committed Sep 15, 2023
1 parent 002cce0 commit e743017
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 51 deletions.
1 change: 1 addition & 0 deletions benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
KOKKOS_ADD_BENCHMARK_DIRECTORIES(gups)
4 changes: 4 additions & 0 deletions benchmarks/gups/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
KOKKOS_ADD_EXECUTABLE(
gups
SOURCES gups.cpp
)
51 changes: 0 additions & 51 deletions benchmarks/gups/Makefile

This file was deleted.

File renamed without changes.
9 changes: 9 additions & 0 deletions cmake/kokkos_tribits.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ MACRO(KOKKOS_PROCESS_SUBPACKAGES)
ADD_SUBDIRECTORY(simd)
if (NOT KOKKOS_HAS_TRILINOS)
ADD_SUBDIRECTORY(example)
ADD_SUBDIRECTORY(benchmarks)
endif()
ENDMACRO()

Expand Down Expand Up @@ -531,3 +532,11 @@ MACRO(KOKKOS_ADD_EXAMPLE_DIRECTORIES)
ENDIF()
endif()
ENDMACRO()

MACRO(KOKKOS_ADD_BENCHMARK_DIRECTORIES)
IF(KOKKOS_ENABLE_BENCHMARKS)
FOREACH(BENCHMARK_DIR ${ARGN})
ADD_SUBDIRECTORY(${BENCHMARK_DIR})
ENDFOREACH()
ENDIF()
ENDMACRO()

0 comments on commit e743017

Please sign in to comment.