Files
pytorch/c10/xpu
Yu, Guangye 5f0030ba63 [xpu][fix] Support xpu custom raw_alloc/delete in caching allocator (#168957)
# Motivation
Memory Pool needs to support the custom `raw_alloc` and `raw_delete` from a custom allocator.

# Solution
When the custom allocator is provided in the memory pool, use its `raw_alloc` and `raw_delete`. Otherwise, use the `sycl::aligned_alloc_device` and `sycl::free` from SYCL runtime.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/168957
Approved by: https://github.com/EikanWang, https://github.com/gujinghui
ghstack dependencies: #168956
2025-12-01 16:47:05 +00:00
..
2025-06-18 10:24:44 +00:00
2025-11-12 11:29:42 +00:00
2025-11-12 11:29:42 +00:00