Skip to content

Commit

Permalink
Enable sparse_sort_crs perf test based on CMake var
Browse files Browse the repository at this point in the history
Instead of just commenting out the cmake.
-DKokkosKernels_ENABLE_SORT_CRS_PERFTEST=ON will enable it (off by
default)
  • Loading branch information
brian-kelley committed Aug 1, 2024
1 parent 9efa616 commit 4ee1c38
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions perf_test/sparse/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,14 @@ KOKKOSKERNELS_ADD_EXECUTABLE(
SOURCES KokkosSparse_mdf.cpp
)

# Do not build this CRS sorting perf test by default.
# It can be enabled if needed by uncommenting these lines.
#KOKKOSKERNELS_ADD_EXECUTABLE(
# sparse_sort_crs
# SOURCES KokkosSparse_sort_crs.cpp
#)
# For the sake of build times, don't build this CRS sorting perf test by default.
# It can be enabled if needed by setting -DKokkosKernels_ENABLE_SORT_CRS_PERFTEST=ON.
if (KokkosKernels_ENABLE_SORT_CRS_PERFTEST)
KOKKOSKERNELS_ADD_EXECUTABLE(
sparse_sort_crs
SOURCES KokkosSparse_sort_crs.cpp
)
endif ()

if (KokkosKernels_ENABLE_BENCHMARK)
KOKKOSKERNELS_ADD_BENCHMARK(
Expand Down

0 comments on commit 4ee1c38

Please sign in to comment.