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
mneme::RecordingBackend< VendorTypes > Class Template Referencefinal

#include <MnemeRecordingBackend.hpp>

Public Member Functions

 RecordingBackend ()
bool setMetadataForPointer (const void *ptr, Metadata md) override
bool setMetadataForRegion (const void *ptr, size_t bytes, Metadata md) override
bool getMetadataForPointer (const void *ptr, Metadata &md) const override
bool eraseMetadataForPointer (const void *ptr) override
DeviceError_t rtMalloc (void **ptr, size_t size) override
DeviceError_t rtManagedMalloc (void **ptr, size_t size, unsigned int flags) override
DeviceError_t rtHostMalloc (void **ptr, size_t size, unsigned int flags) override
void trackPassthroughAlloc (void *ptr, size_t size, const char *api) override
DeviceError_t rtFree (void *ptr) override
DeviceError_t rtFreeAsync (void *ptr, DeviceStream_t stream) override
DeviceError_t rtHostFree (void *ptr) override
DeviceError_t rtLaunchKernel (const void *func, dim3 &GridDim, dim3 &BlockDim, void **Args, size_t SharedMem, DeviceStream_t Stream) override
DeviceError_t rtSetDevice (int deviceID) override
DeviceError_t rtGetDevice (int *deviceID) override
 ~RecordingBackend ()
Public Member Functions inherited from mneme::RecorderBackend< VendorTypes >
virtual ~RecorderBackend ()=default

Additional Inherited Members

Public Types inherited from mneme::RecorderBackend< VendorTypes >
using MnemeDeviceRT = DeviceTraits<VendorTypes>
using DeviceError_t = typename MnemeDeviceRT::DeviceError_t
using DeviceStream_t = typename MnemeDeviceRT::DeviceStream_t

Constructor & Destructor Documentation

◆ RecordingBackend()

template<DeviceVendors VendorTypes>
mneme::RecordingBackend< VendorTypes >::RecordingBackend ( )
inline

◆ ~RecordingBackend()

template<DeviceVendors VendorTypes>
mneme::RecordingBackend< VendorTypes >::~RecordingBackend ( )
inline

Member Function Documentation

◆ eraseMetadataForPointer()

template<DeviceVendors VendorTypes>
bool mneme::RecordingBackend< VendorTypes >::eraseMetadataForPointer ( const void * ptr)
inlineoverridevirtual

◆ getMetadataForPointer()

template<DeviceVendors VendorTypes>
bool mneme::RecordingBackend< VendorTypes >::getMetadataForPointer ( const void * ptr,
Metadata & md ) const
inlineoverridevirtual

◆ rtFree()

template<DeviceVendors VendorTypes>
DeviceError_t mneme::RecordingBackend< VendorTypes >::rtFree ( void * ptr)
inlineoverridevirtual

◆ rtFreeAsync()

template<DeviceVendors VendorTypes>
DeviceError_t mneme::RecordingBackend< VendorTypes >::rtFreeAsync ( void * ptr,
DeviceStream_t stream )
inlineoverridevirtual

◆ rtGetDevice()

template<DeviceVendors VendorTypes>
DeviceError_t mneme::RecordingBackend< VendorTypes >::rtGetDevice ( int * deviceID)
inlineoverridevirtual

◆ rtHostFree()

template<DeviceVendors VendorTypes>
DeviceError_t mneme::RecordingBackend< VendorTypes >::rtHostFree ( void * ptr)
inlineoverridevirtual

◆ rtHostMalloc()

template<DeviceVendors VendorTypes>
DeviceError_t mneme::RecordingBackend< VendorTypes >::rtHostMalloc ( void ** ptr,
size_t size,
unsigned int flags )
inlineoverridevirtual

◆ rtLaunchKernel()

template<DeviceVendors VendorTypes>
DeviceError_t mneme::RecordingBackend< VendorTypes >::rtLaunchKernel ( const void * func,
dim3 & GridDim,
dim3 & BlockDim,
void ** Args,
size_t SharedMem,
DeviceStream_t Stream )
inlineoverridevirtual

◆ rtMalloc()

template<DeviceVendors VendorTypes>
DeviceError_t mneme::RecordingBackend< VendorTypes >::rtMalloc ( void ** ptr,
size_t size )
inlineoverridevirtual

◆ rtManagedMalloc()

template<DeviceVendors VendorTypes>
DeviceError_t mneme::RecordingBackend< VendorTypes >::rtManagedMalloc ( void ** ptr,
size_t size,
unsigned int flags )
inlineoverridevirtual

◆ rtSetDevice()

template<DeviceVendors VendorTypes>
DeviceError_t mneme::RecordingBackend< VendorTypes >::rtSetDevice ( int deviceID)
inlineoverridevirtual

◆ setMetadataForPointer()

template<DeviceVendors VendorTypes>
bool mneme::RecordingBackend< VendorTypes >::setMetadataForPointer ( const void * ptr,
Metadata md )
inlineoverridevirtual

◆ setMetadataForRegion()

template<DeviceVendors VendorTypes>
bool mneme::RecordingBackend< VendorTypes >::setMetadataForRegion ( const void * ptr,
size_t bytes,
Metadata md )
inlineoverridevirtual

◆ trackPassthroughAlloc()

template<DeviceVendors VendorTypes>
void mneme::RecordingBackend< VendorTypes >::trackPassthroughAlloc ( void * ptr,
size_t size,
const char * api )
inlineoverridevirtual

The documentation for this class was generated from the following file: