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

Method blockCopyEvents

csrc/includes/deepcompile.h:583–589  ·  view source on GitHub ↗

Common helper methods for flushReduceBucket implementations

Source from the content-addressed store, hash-verified

581
582 // Common helper methods for flushReduceBucket implementations
583 void blockCopyEvents(at::ScalarType scalar_type)
584 {
585 for (const ReduceTask& t : reduce_tasks_.at(scalar_type)) {
586 auto copy_done_event = rs_copy_done_events_.at(t.getDSId());
587 copy_done_event->block(rs_stream_);
588 }
589 }
590
591 void applyPreDivision(at::ScalarType scalar_type)
592 {

Callers

nothing calls this directly

Calls 2

getDSIdMethod · 0.80
blockMethod · 0.80

Tested by

no test coverage detected