Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -280,15 +280,31 @@ if (ENABLE_CALIPER)
include_directories(tpl/caliper/include)
else()
find_package(caliper REQUIRED)
find_package(adiak REQUIRED)
#find_package(adiak REQUIRED)
endif()

if (DEFINED adiak_DIR)
# First, build Adiak with:
# cd tpl/adiak/ ; mkdir build
# cmake -DBUILD_SHARED_LIBS=Off -DENABLE_MPI=On -DMPI_C_COMPILER=mpiamdclang -DMPI_CXX_COMPILER=mpiamdclang++ -DCMAKE_C_COMPILER=mpiamdclang -DCMAKE_CXX_COMPILER=mpiamdclang++ -DCMAKE_INSTALL_PREFIX=./install ..
# make -j
# Then, set adiak_DIR=tpl/adiak/build/install/lib/cmake/adiak/ when building Kripke.
find_package(adiak REQUIRED)
list(APPEND KRIPKE_DEPENDS caliper adiak::adiak)
else ()
# This method requires a modified adiak, where the MPI target is not exported in adiak2/src/CMakeLists.txt.
set(BUILD_SHARED_LIBS False CACHE BOOL "")
add_subdirectory(tpl/adiak2)
include_directories(tpl/adiak2/include)
list(APPEND KRIPKE_DEPENDS caliper adiak)
endif()

# blt_register_library(NAME caliper
# INCLUDES ${caliper_INCLUDE_DIR}
# LIBRARIES caliper)

set(KRIPKE_USE_CALIPER TRUE)
list(APPEND KRIPKE_DEPENDS caliper adiak::adiak)
#list(APPEND KRIPKE_DEPENDS caliper adiak::adiak)
endif()

message(STATUS "Caliper support is ${KRIPKE_USE_CALIPER}")
Expand Down
2 changes: 2 additions & 0 deletions host-configs/llnl-toss4-MI300A-rocm6-adams.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ set(GPU_TARGETS "gfx942" CACHE STRING "")
set(AMD_GPU_TARGETS "gfx942" CACHE STRING "")

set(ENABLE_CHAI On CACHE BOOL "")
set(ENABLE_CALIPER On CACHE BOOL "")
set(ENABLE_ADIAK On CACHE BOOL "")
set(ENABLE_HIP On CACHE BOOL "")
set(ENABLE_OPENMP Off CACHE BOOL "")
set(ENABLE_MPI On CACHE BOOL "")
Expand Down
1 change: 1 addition & 0 deletions tpl/adiak
Submodule adiak added at f08c83
1 change: 1 addition & 0 deletions tpl/adiak2
Submodule adiak2 added at f08c83