Skip to content

Commit 9b20b30

Browse files
authored
Merge pull request #9 from DARMA-tasking/7-fix-iteration-breakdown-and-analysis
#7: Fix iteration breakdown, add frequency analysis, and plot dropped nodes
2 parents 1e188d8 + cc518be commit 9b20b30

File tree

17 files changed

+935
-543
lines changed

17 files changed

+935
-543
lines changed

CMakeLists.txt

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ cmake_minimum_required(VERSION 3.17 FATAL_ERROR)
22
project(slow-node-detector VERSION 1.0)
33

44
set(CMAKE_CXX_STANDARD 17)
5-
6-
find_package(MPI REQUIRED)
7-
find_package(KokkosKernels REQUIRED)
5+
set(CMAKE_CXX_EXTENSIONS OFF)
86

97
add_subdirectory(src)
108

@@ -14,7 +12,21 @@ add_executable(
1412
${SLOW_NODE_EXE}
1513
"${CMAKE_SOURCE_DIR}/src/slow_node.cc"
1614
"${CMAKE_SOURCE_DIR}/src/sensors.cc"
15+
"${CMAKE_SOURCE_DIR}/src/freq.cc"
1716
)
1817

18+
find_package(MPI REQUIRED)
1919
target_link_libraries(${SLOW_NODE_EXE} PUBLIC MPI::MPI_CXX)
20-
target_link_libraries(${SLOW_NODE_EXE} PUBLIC Kokkos::kokkoskernels)
20+
21+
find_package(MKL QUIET REQUIRED)
22+
target_link_libraries(${SLOW_NODE_EXE} PUBLIC MKL::MKL)
23+
24+
find_package(Trilinos QUIET)
25+
if (Trilinos_FOUND)
26+
message(STATUS "Trilinos found: ${Trilinos_VERSION}")
27+
target_link_libraries(${SLOW_NODE_EXE} PUBLIC Kokkos::kokkos)
28+
else()
29+
message(STATUS "Did not find Trilinos. Searching for kokkos directly.")
30+
find_package(Kokkos REQUIRED)
31+
target_link_libraries(${SLOW_NODE_EXE} PUBLIC Kokkos::kokkos)
32+
endif()

0 commit comments

Comments
 (0)