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
MnemePython.hpp
Go to the documentation of this file.
3
4#ifdef MNEME_ENABLE_HIP
7using DeviceMemState = mneme::ReplayMemState<Vendor>;
8#elif defined(MNEME_ENABLE_CUDA)
11using DeviceMemState = mneme::ReplayMemState<Vendor>;
12#endif
13
14typedef DeviceMemState *MnemeDeviceMemStateRef;
15
16namespace mneme {
17namespace python {
18static MnemeDeviceMemStateRef wrap(DeviceMemState *W) {
19 return reinterpret_cast<MnemeDeviceMemStateRef>(W);
20}
21static DeviceMemState *unwrap(MnemeDeviceMemStateRef WR) {
22 return reinterpret_cast<DeviceMemState *>(WR);
23}
24
25} // namespace python
26} // namespace mneme
DeviceMemState * MnemeDeviceMemStateRef
Definition MnemePython.hpp:14
Definition MnemeReplay.hpp:30
Definition MnemePython.hpp:17
Definition MnemeAnnotation.cpp:3
DeviceVendors
Definition DeviceTraits.hpp:67
@ CUDA
Definition DeviceTraits.hpp:67
@ HIP
Definition DeviceTraits.hpp:67
Definition DeviceTraits.hpp:73