From 56b385940a843425f9a88e9be0f9b57090ca91dd Mon Sep 17 00:00:00 2001 From: David Poliakoff Date: Tue, 12 Jan 2021 15:03:37 -0800 Subject: [PATCH] Added the metadata callback --- src/services/kokkos/KokkosProfilingSymbols.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/services/kokkos/KokkosProfilingSymbols.cpp b/src/services/kokkos/KokkosProfilingSymbols.cpp index 41652091e..7c2b6aec3 100644 --- a/src/services/kokkos/KokkosProfilingSymbols.cpp +++ b/src/services/kokkos/KokkosProfilingSymbols.cpp @@ -66,3 +66,8 @@ extern "C" void kokkosp_begin_deep_copy(const SpaceHandle dst_handle, const char extern "C" void kokkosp_end_deep_copy() { kokkosp_callbacks.kokkosp_end_deep_copy_callback(); } +#ifndef CALIPER_HAVE_ADIAK +extern "C" void kokkosp_declare_metadata(const char* key, const char* value) { + cali::Annotation(key,CALI_ATTR_GLOBAL).set(value); +} +#endif