MCPcopy Create free account
hub / github.com/XpuOS/xsched / InstrumentManager

Method InstrumentManager

platforms/cuda/hal/src/level2/instrument.cpp:169–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167
168
169InstrumentManager::InstrumentManager(CUcontext ctx, CUdevice dev)
170{
171 preempt_buf_ = std::make_unique<ResizableBuffer>(dev);
172 preempt_buf_ptr_ = preempt_buf_->Ptr();
173 instrument_ctx_ = InstrumentContext::Instance(ctx);
174 op_stream_ = instrument_ctx_->OpStream();
175}
176
177/* preempt buffer layout: (see also tools/instrument/inject.cu)
178 * |<------- uint32 ------->|<--- 32 bits -->|<---- uint64 ----->|<--------- uint32 --------->|<----------- uint32 ---------->|<------ ... ------>|

Callers

nothing calls this directly

Calls 2

PtrMethod · 0.80
OpStreamMethod · 0.45

Tested by

no test coverage detected