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::RecordDatabase Class Reference

#include <MnemeSnapshot.hpp>

Public Member Functions

 RecordDatabase (std::filesystem::path MnemeDirectory, EpilogueSnapshotType EpilogueType, bool CopySource, KernelTimingType Timing)
void writeKernelJSON (uint64_t StaticHash)
void flush ()
std::optional< KernelRecordingPolicy > filterLaunch (uint64_t StaticHash, const std::string &KernelName)
KernelInstancesCollection * findOrCreateRecord (const proteus::runtime::KernelMetadata &KInfo)
std::optional< LaunchHandle > registerLaunch (const void *Kernel, const dim3 &GridDim, const dim3 &BlockDim, size_t SharedMem)
template<DeviceVendors VendorTypes>
std::optional< std::function< void()> > takeSnapshot (const void *Kernel, const LaunchHandle &Launch, BlobsByAddress< VendorTypes > &DeviceMemory, void **Args, typename DeviceTraits< VendorTypes >::DeviceStream_t Stream)
const std::string & kernelName (uint64_t StaticHash) const
void addLaunchTime (const LaunchHandle &Launch, uint64_t Ns)

Constructor & Destructor Documentation

◆ RecordDatabase()

mneme::RecordDatabase::RecordDatabase ( std::filesystem::path MnemeDirectory,
EpilogueSnapshotType EpilogueType,
bool CopySource,
KernelTimingType Timing )
inline

Member Function Documentation

◆ addLaunchTime()

void mneme::RecordDatabase::addLaunchTime ( const LaunchHandle & Launch,
uint64_t Ns )
inline

◆ filterLaunch()

std::optional< KernelRecordingPolicy > mneme::RecordDatabase::filterLaunch ( uint64_t StaticHash,
const std::string & KernelName )
inline

◆ findOrCreateRecord()

KernelInstancesCollection * mneme::RecordDatabase::findOrCreateRecord ( const proteus::runtime::KernelMetadata & KInfo)
inline

◆ flush()

void mneme::RecordDatabase::flush ( )
inline

◆ kernelName()

const std::string & mneme::RecordDatabase::kernelName ( uint64_t StaticHash) const
inline

◆ registerLaunch()

std::optional< LaunchHandle > mneme::RecordDatabase::registerLaunch ( const void * Kernel,
const dim3 & GridDim,
const dim3 & BlockDim,
size_t SharedMem )
inline

◆ takeSnapshot()

template<DeviceVendors VendorTypes>
std::optional< std::function< void()> > mneme::RecordDatabase::takeSnapshot ( const void * Kernel,
const LaunchHandle & Launch,
BlobsByAddress< VendorTypes > & DeviceMemory,
void ** Args,
typename DeviceTraits< VendorTypes >::DeviceStream_t Stream )
inline

◆ writeKernelJSON()

void mneme::RecordDatabase::writeKernelJSON ( uint64_t StaticHash)
inline

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