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::RecorderBackend< VendorTypes > Class Template Referenceabstract

#include <MnemeRecorderBackend.hpp>

Public Types

using MnemeDeviceRT = DeviceTraits<VendorTypes>
using DeviceError_t = typename MnemeDeviceRT::DeviceError_t
using DeviceStream_t = typename MnemeDeviceRT::DeviceStream_t

Public Member Functions

virtual ~RecorderBackend ()=default
virtual bool setMetadataForPointer (const void *ptr, Metadata md)=0
virtual bool setMetadataForRegion (const void *ptr, size_t bytes, Metadata md)=0
virtual bool getMetadataForPointer (const void *ptr, Metadata &md) const =0
virtual bool eraseMetadataForPointer (const void *ptr)=0
virtual DeviceError_t rtMalloc (void **ptr, size_t size)=0
virtual DeviceError_t rtManagedMalloc (void **ptr, size_t size, unsigned int flags)=0
virtual DeviceError_t rtHostMalloc (void **ptr, size_t size, unsigned int flags)=0
virtual void trackPassthroughAlloc (void *ptr, size_t size, const char *api)=0
virtual DeviceError_t rtFree (void *ptr)=0
virtual DeviceError_t rtFreeAsync (void *ptr, DeviceStream_t stream)=0
virtual DeviceError_t rtHostFree (void *ptr)=0
virtual DeviceError_t rtLaunchKernel (const void *func, dim3 &GridDim, dim3 &BlockDim, void **Args, size_t SharedMem, DeviceStream_t Stream)=0
virtual DeviceError_t rtSetDevice (int deviceID)=0
virtual DeviceError_t rtGetDevice (int *deviceID)=0

Member Typedef Documentation

◆ DeviceError_t

template<DeviceVendors VendorTypes>
using mneme::RecorderBackend< VendorTypes >::DeviceError_t = typename MnemeDeviceRT::DeviceError_t

◆ DeviceStream_t

template<DeviceVendors VendorTypes>
using mneme::RecorderBackend< VendorTypes >::DeviceStream_t = typename MnemeDeviceRT::DeviceStream_t

◆ MnemeDeviceRT

template<DeviceVendors VendorTypes>
using mneme::RecorderBackend< VendorTypes >::MnemeDeviceRT = DeviceTraits<VendorTypes>

Constructor & Destructor Documentation

◆ ~RecorderBackend()

template<DeviceVendors VendorTypes>
virtual mneme::RecorderBackend< VendorTypes >::~RecorderBackend ( )
virtualdefault

Member Function Documentation

◆ eraseMetadataForPointer()

template<DeviceVendors VendorTypes>
virtual bool mneme::RecorderBackend< VendorTypes >::eraseMetadataForPointer ( const void * ptr)
pure virtual

◆ getMetadataForPointer()

template<DeviceVendors VendorTypes>
virtual bool mneme::RecorderBackend< VendorTypes >::getMetadataForPointer ( const void * ptr,
Metadata & md ) const
pure virtual

◆ rtFree()

template<DeviceVendors VendorTypes>
virtual DeviceError_t mneme::RecorderBackend< VendorTypes >::rtFree ( void * ptr)
pure virtual

◆ rtFreeAsync()

template<DeviceVendors VendorTypes>
virtual DeviceError_t mneme::RecorderBackend< VendorTypes >::rtFreeAsync ( void * ptr,
DeviceStream_t stream )
pure virtual

◆ rtGetDevice()

template<DeviceVendors VendorTypes>
virtual DeviceError_t mneme::RecorderBackend< VendorTypes >::rtGetDevice ( int * deviceID)
pure virtual

◆ rtHostFree()

template<DeviceVendors VendorTypes>
virtual DeviceError_t mneme::RecorderBackend< VendorTypes >::rtHostFree ( void * ptr)
pure virtual

◆ rtHostMalloc()

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

◆ rtLaunchKernel()

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

◆ rtMalloc()

template<DeviceVendors VendorTypes>
virtual DeviceError_t mneme::RecorderBackend< VendorTypes >::rtMalloc ( void ** ptr,
size_t size )
pure virtual

◆ rtManagedMalloc()

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

◆ rtSetDevice()

template<DeviceVendors VendorTypes>
virtual DeviceError_t mneme::RecorderBackend< VendorTypes >::rtSetDevice ( int deviceID)
pure virtual

◆ setMetadataForPointer()

template<DeviceVendors VendorTypes>
virtual bool mneme::RecorderBackend< VendorTypes >::setMetadataForPointer ( const void * ptr,
Metadata md )
pure virtual

◆ setMetadataForRegion()

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

◆ trackPassthroughAlloc()

template<DeviceVendors VendorTypes>
virtual void mneme::RecorderBackend< VendorTypes >::trackPassthroughAlloc ( void * ptr,
size_t size,
const char * api )
pure virtual

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