| 11 | class Z1CustomOpExecutor : public CustomOpExecutor { |
| 12 | public: |
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected