| 15 | class Z3CustomOpExecutor : public CustomOpExecutor { |
| 16 | public: |
| 17 | Z3CustomOpExecutor(c10::intrusive_ptr<c10d::ProcessGroup> process_group, |
| 18 | std::shared_ptr<DSParamRegistry> param_registry, |
| 19 | std::shared_ptr<DoubleBufferedReduceBucket> reduce_buckets, |
| 20 | std::vector<long> ds_ids, |
| 21 | ncclComm_t nccl_comm, |
| 22 | at::cuda::CUDAStream ag_stream, |
| 23 | at::cuda::CUDAStream rs_stream, |
| 24 | at::cuda::CUDAStream copy_stream, |
| 25 | at::cuda::CUDAStream offload_stream, |
| 26 | at::cuda::CUDAStream reload_stream, |
| 27 | bool pre_div_reduce) |
| 28 | : CustomOpExecutor(process_group, |
| 29 | param_registry, |
| 30 | reduce_buckets, |
| 31 | ds_ids, |
| 32 | nccl_comm, |
| 33 | rs_stream, |
| 34 | copy_stream, |
| 35 | pre_div_reduce), |
| 36 | ag_stream_(ag_stream), |
| 37 | offload_stream_(offload_stream), |
| 38 | reload_stream_(reload_stream) |
| 39 | { |
| 40 | for (long ds_id : ds_ids_) { |
| 41 | ag_comm_done_events_[ds_id] = |
| 42 | std::make_shared<at::cuda::CUDAEvent>(cudaEventDisableTiming); |
| 43 | ag_comp_done_events_[ds_id] = |
| 44 | std::make_shared<at::cuda::CUDAEvent>(cudaEventDisableTiming); |
| 45 | |
| 46 | param_use_count_[ds_id] = 0; |
| 47 | } |
| 48 | } |
| 49 | ~Z3CustomOpExecutor() {} |
| 50 | |
| 51 | void endBackward() override |
nothing calls this directly
no outgoing calls
no test coverage detected