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
rocr_profile.cpp File Reference
#include <algorithm>
#include <atomic>
#include <condition_variable>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <hip/hip_runtime.h>
#include <memory>
#include <mutex>
#include <optional>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
#include <rocprofiler-sdk/registration.h>
#include "mneme/MnemeDispatchTracer.hpp"
#include "mneme/MnemeLogger.hpp"
#include <mneme/DeviceTraits.hpp>

Classes

class  mneme::MnemeRocProfiler

Namespaces

namespace  mneme

Macros

#define API_EXPORT(RTYPE)

Functions

rocprofiler_tool_configure_result_t * rocprofiler_configure (uint32_t version, const char *runtime_version, uint32_t priority, rocprofiler_client_id_t *client_id)
 API_EXPORT (int64_t) MnemePy_startProfile(const char *KernelName)
 MnemePy_stopProfile (int64_t Token, int64_t *ProfileData, int64_t Size)
 LOG_DEBUG ("Record contains {} elements", records)
 API_EXPORT (void) MnemePy_initProfiler()

Variables

int64_t expected
auto & instance = mneme::MnemeRocProfiler::instance()
auto records = instance.numRecords(token, expected)

Macro Definition Documentation

◆ API_EXPORT

#define API_EXPORT ( RTYPE)
Value:
RTYPE

Function Documentation

◆ API_EXPORT() [1/2]

API_EXPORT ( int64_t ) const

◆ API_EXPORT() [2/2]

API_EXPORT ( void )

◆ LOG_DEBUG()

LOG_DEBUG ( "Record contains {} elements" ,
records  )

◆ MnemePy_stopProfile()

MnemePy_stopProfile ( int64_t Token,
int64_t * ProfileData,
int64_t Size )

◆ rocprofiler_configure()

rocprofiler_tool_configure_result_t * rocprofiler_configure ( uint32_t version,
const char * runtime_version,
uint32_t priority,
rocprofiler_client_id_t * client_id )

Variable Documentation

◆ expected

int64_t expected
Initial value:
{
LOG_DEBUG("Requested to get number of profile records {}", token)
#define LOG_DEBUG(...)
Definition MnemeLogger.hpp:109

◆ instance

◆ records

return records = instance.numRecords(token, expected)