| 1057 | void GPUContext::set_nccl_comm(ncclComm_t comm) { impl_->SetNcclComm(comm); } |
| 1058 | |
| 1059 | void GPUContext::Init() { |
| 1060 | impl_->allocator_ = const_cast<Allocator*>(&this->GetAllocator()); // NOLINT |
| 1061 | impl_->Init(); |
| 1062 | } |
| 1063 | |
| 1064 | void GPUContext::SetStream(gpuStream_t stream) { |
| 1065 | #if !defined(_WIN32) |
| 1066 | this->SetAllocator(paddle::memory::allocation::AllocatorFacade::Instance() |
| 1067 | .GetAllocator(impl_->GetPlace(), stream) |
| 1068 | .get()); |
| 1069 | #endif |
| 1070 | impl_->allocator_ = const_cast<Allocator*>(&this->GetAllocator()); // NOLINT |
nothing calls this directly
no test coverage detected