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
MnemeMemory.hpp File Reference
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <cstring>
#include <iterator>
#include <llvm/ADT/StringRef.h>
#include <llvm/Support/raw_ostream.h>
#include <map>
#include <memory>
#include <sys/types.h>
#include <utility>
#include <vector>
#include "mneme/DeviceTraits.hpp"
#include "mneme/MnemeAnnotation.hpp"
#include "mneme/MnemeAnnotationInternal.hpp"
#include "mneme/MnemeComparators.hpp"
#include "mneme/MnemeLLVMUtils.hpp"
#include "mneme/MnemeLogger.hpp"
#include "mneme/MnemeSnapshotRecords.hpp"
#include "mneme/MnemeUtils.hpp"

Go to the source code of this file.

Classes

struct  mneme::ByteSpan
struct  mneme::MemoryAnnotation
class  mneme::MnemeBuffer< VendorTypes >
class  mneme::MnemeMemoryBlob< VendorTypes >

Namespaces

namespace  mneme

Typedefs

template<DeviceVendors VendorTypes>
using mneme::BlobsByAddress = std::map<void *, MnemeMemoryBlob<VendorTypes>>

Enumerations

enum class  mneme::AnnotationStatus {
  mneme::Ok , mneme::OutOfBounds , mneme::Empty , mneme::UnknownElementType ,
  mneme::StartsInsideElement , mneme::EndsInsideElement
}
enum class  mneme::MemoryLocation { mneme::Host , mneme::Device }

Functions

bool mneme::operator== (const ByteSpan &LHS, const ByteSpan &RHS)
bool mneme::operator!= (const ByteSpan &LHS, const ByteSpan &RHS)
bool mneme::operator== (const MemoryAnnotation &LHS, const MemoryAnnotation &RHS)
bool mneme::operator!= (const MemoryAnnotation &LHS, const MemoryAnnotation &RHS)
std::vector< MemoryAnnotation > mneme::readAnnotationsFromBuffer (const char *&Buffer)
void mneme::writeAnnotationsToStream (llvm::raw_ostream &OS, const std::vector< MemoryAnnotation > &Annotations)
size_t mneme::annotationsSerializedSize (const std::vector< MemoryAnnotation > &Annotations)
const char * mneme::describeAnnotationStatus (AnnotationStatus Status)