| 553 | } |
| 554 | |
| 555 | void set_persistent(long ds_id) |
| 556 | { |
| 557 | param_registry->setPersistent(ds_id, true); |
| 558 | |
| 559 | // Allocate buffer here |
| 560 | // Memory fragmentation will be more severe if we allocate in forward/backward |
| 561 | for (auto& it : executors) { |
| 562 | if (it.second->hasParam(ds_id)) { |
| 563 | auto executor = getExecutor<Z3CustomOpExecutor>(it.first, executors); |
| 564 | auto dtype = param_registry->getParam(ds_id).getDtype(); |
| 565 | executor->allgatherParam(ds_id, dtype, symm_mem); |
| 566 | } |
| 567 | } |
| 568 | } |
| 569 | |
| 570 | void prefetch_params_fused(long graph_id, |
| 571 | const std::vector<at::Tensor>& params, |
nothing calls this directly
no test coverage detected