| 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); |
no test coverage detected