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

Method Z1CustomOpExecutor

csrc/compile/z1.cpp:13–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11class Z1CustomOpExecutor : public CustomOpExecutor {
12public:
13 Z1CustomOpExecutor(c10::intrusive_ptr<c10d::ProcessGroup> process_group,
14 std::shared_ptr<DSParamRegistry> param_registry,
15 std::shared_ptr<DoubleBufferedReduceBucket> reduce_buckets,
16 std::vector<long> ds_ids,
17 ncclComm_t nccl_comm,
18 at::cuda::CUDAStream rs_stream,
19 at::cuda::CUDAStream copy_stream,
20 bool pre_div_reduce)
21 : CustomOpExecutor(process_group,
22 param_registry,
23 reduce_buckets,
24 ds_ids,
25 nccl_comm,
26 rs_stream,
27 copy_stream,
28 pre_div_reduce)
29 {
30 }
31 ~Z1CustomOpExecutor() {}
32
33 at::Tensor reduceGrad(at::Tensor grad_tensor, long ds_id) override

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected