MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / waitOffload

Method waitOffload

csrc/compile/z3.cpp:396–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394 }
395
396 at::Tensor waitOffload(at::Tensor tensor, long id)
397 {
398 assert(hasKey(offload_events_, id));
399 offload_events_[id]->block(at::cuda::getCurrentCUDAStream());
400
401 assert(hasKey(offload_buffers_, id));
402 return offload_buffers_.at(id);
403 }
404
405 at::Tensor waitReload(at::Tensor tensor, long id)
406 {

Callers 1

wait_offloadFunction · 0.80

Calls 3

hasKeyFunction · 0.85
getCurrentCUDAStreamFunction · 0.85
blockMethod · 0.80

Tested by

no test coverage detected