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

Method stamp

engine/src/core/mtp.cpp:1046–1048  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1044 h.assign((size_t) kMpSlots * kMpGraphs, 0);
1045 }
1046 void stamp(int i, cudaStream_t cs) const {
1047 if (on && d != nullptr && base >= 0) strata::kernels::gpu_stamp(d, base * kMpSlots + i, cs);
1048 }
1049 void collect(int n_steps_run) { // after the round's sync: the round graph and steps 1..n_steps_run-1
1050 if (!on || d == nullptr) return;
1051 cudaMemcpy(h.data(), d, h.size() * 8, cudaMemcpyDeviceToHost);

Callers 4

record_frontMethod · 0.45
record_restMethod · 0.45
capture_roundMethod · 0.45
capture_stepMethod · 0.45

Calls 1

gpu_stampFunction · 0.50

Tested by

no test coverage detected