Mneme
Mneme a tool allowing recording the execution of a GPU (CUDA/HIP) kernel and replaying that kernel as an independent executable.
Loading...
Searching...
No Matches
MnemeAnnotationRuntime.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#include <cstddef>
6
7extern "C" {
8bool mneme_set_metadata_for_ptr(const void *ptr, mneme::Metadata md)
9 __attribute__((weak));
10bool mneme_set_metadata_for_region(const void *ptr, std::size_t bytes,
12bool mneme_get_metadata_for_ptr(const void *ptr, mneme::Metadata *md)
13 __attribute__((weak));
14bool mneme_erase_metadata_for_ptr(const void *ptr) __attribute__((weak));
15}
16
17namespace mneme {
18namespace detail {
19
20void annotate_impl(const void *ptr, Metadata md);
21void annotate_region_impl(const void *ptr, std::size_t bytes, Metadata md);
22bool get_annotation(const void *ptr, Metadata &md);
23void erase_annotation(const void *ptr);
24
25} // namespace detail
26} // namespace mneme
bool mneme_set_metadata_for_region(const void *ptr, std::size_t bytes, mneme::Metadata md) __attribute__((weak))
bool mneme_get_metadata_for_ptr(const void *ptr, mneme::Metadata *md) __attribute__((weak))
Definition MnemeRecordPreloadCUDA.cpp:171
bool mneme_set_metadata_for_ptr(const void *ptr, mneme::Metadata md) __attribute__((weak))
Definition MnemeRecordPreloadCUDA.cpp:160
bool mneme_erase_metadata_for_ptr(const void *ptr) __attribute__((weak))
Definition MnemeRecordPreloadCUDA.cpp:179
__attribute__((constructor)) static void configureKernelTiming()
Definition MnemeRecordPreloadHIP.cpp:41
Definition MnemeAnnotation.cpp:13
void annotate_region_impl(const void *ptr, std::size_t bytes, Metadata md)
Definition MnemeAnnotation.cpp:20
bool get_annotation(const void *ptr, Metadata &md)
Definition MnemeAnnotation.cpp:25
void annotate_impl(const void *ptr, Metadata md)
Definition MnemeAnnotation.cpp:15
void erase_annotation(const void *ptr)
Definition MnemeAnnotation.cpp:32
Definition MnemeAnnotation.cpp:3
Definition MnemeAnnotation.hpp:90