MCPcopy Create free account
hub / github.com/Niko1221/Strata / begin

Method begin

engine/src/core/graph.cpp:47–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47bool CapturedGraph::begin(void* stream, std::string& err) {
48 if (graph_ || exec_) { err = "begin: this CapturedGraph is already recorded"; return false; }
49 const cudaError_t e = cudaStreamBeginCapture((cudaStream_t) stream, cudaStreamCaptureModeThreadLocal);
50 if (e != cudaSuccess) return fail(err, "cudaStreamBeginCapture", e);
51 return true;
52}
53
54bool CapturedGraph::end(void* stream, std::string& err) {
55 cudaError_t e = cudaStreamEndCapture((cudaStream_t) stream, &graph_);

Callers 15

open_intoMethod · 0.45
findMethod · 0.45
putMethod · 0.45
vision_probeFunction · 0.45
run_serve_loopFunction · 0.45
open_intoMethod · 0.45
cmd_ring_checkFunction · 0.45
cmd_spec_checkFunction · 0.45
mainFunction · 0.45
initMethod · 0.45
forward_batchMethod · 0.45
resetMethod · 0.45

Calls 2

failFunction · 0.70
cudaStreamBeginCaptureFunction · 0.50

Tested by 15

run_typeFunction · 0.36
mainFunction · 0.36
chain_listFunction · 0.36
full_swapFunction · 0.36
full_sessionFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
evictMethod · 0.36
mainFunction · 0.36
testsFunction · 0.36
mainFunction · 0.36