Deprecate overlapped functions in CUDAAllocatorConfig (#165289)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/165289
Approved by: https://github.com/albanD
ghstack dependencies: #165288
This commit is contained in:
Yu, Guangye
2025-10-17 17:16:43 +00:00
committed by PyTorch MergeBot
parent 4888ed440e
commit a1114beed2
3 changed files with 39 additions and 27 deletions

View File

@ -183,11 +183,6 @@ struct CUDACachingHostAllocatorImpl
return true;
}
bool pinned_use_background_threads() override {
return c10::cuda::CUDACachingAllocator::CUDAAllocatorConfig::
pinned_use_background_threads();
}
EventPool::Event create_event_internal(DeviceIndex idx) {
// Leak the event pool to avoid shutdown issue.
static auto* event_pool = new EventPool();