| 56 | CopyInstr() = default; |
| 57 | |
| 58 | void execute() { |
| 59 | src->wait_ready(); |
| 60 | if (cross_cn) { |
| 61 | dst->var->comp_node().device_wait_event(*src->cn_ready_event); |
| 62 | } |
| 63 | dst->var->dev_tensor().sub(dst_sub).copy_from_fixlayout( |
| 64 | src->var->dev_tensor().sub(src_sub)); |
| 65 | dst->set_ready(); |
| 66 | } |
| 67 | }; |
| 68 | |
| 69 | AllGather* m_par_opr; |
no test coverage detected