Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/168966
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (2 Unrelated Failures)As of commit d87c03f with merge base c6ae757 ( FLAKY - The following job failed but was likely due to flakiness present on trunk:
UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
|
||
| C10_XPU_API void resetPeakStats(DeviceIndex device); | ||
| inline void emptyCache(MempoolId_t mempool_id = {0, 0}) { | ||
| get()->emptyCache(); |
|
Thanks @eellison |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: 1 jobs have failed, first few of them are: xpu / linux-noble-xpu-n-py3.10 / test (default, 6, 12, linux.idc.xpu) Details for Dev Infra teamRaised by workflow job |
|
"log upload time out" |
Merge startedYour change will be merged while ignoring the following 2 checks: trunk / linux-jammy-rocm-py3.10 / test (default, 1, 6, linux.rocm.gpu.gfx942.1, unstable), xpu / linux-noble-xpu-n-py3.10 / test (default, 6, 12, linux.idc.xpu) Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…#169043) # Motivation This PR aims to introduce `torch.xpu.memory.XPUPluggableAllocator` and focus on the frontend part. Meanwhile, we introduce an API `torch.xpu.memory.change_current_allocator` that used to change the current `XPUAllocator`. Both APIs has the CUDA counterpart. # Additional Context This API would be used in popular repos such as https://github.com/search?q=repo%3Avllm-project%2Fvllm%20cudapluggableallocator&type=code Pull Request resolved: #169043 Approved by: https://github.com/EikanWang, https://github.com/gujinghui, https://github.com/eellison ghstack dependencies: #168966
…8966) # Motivation This PR aims to introduce `XPUPluggableAllocator` and we make it as simple as possible. The follow-up PR would introduce the code related to the Python frontend part. Pull Request resolved: #168966 Approved by: https://github.com/gujinghui, https://github.com/EikanWang, https://github.com/eellison
…#169043) # Motivation This PR aims to introduce `torch.xpu.memory.XPUPluggableAllocator` and focus on the frontend part. Meanwhile, we introduce an API `torch.xpu.memory.change_current_allocator` that used to change the current `XPUAllocator`. Both APIs has the CUDA counterpart. # Additional Context This API would be used in popular repos such as https://github.com/search?q=repo%3Avllm-project%2Fvllm%20cudapluggableallocator&type=code Pull Request resolved: #169043 Approved by: https://github.com/EikanWang, https://github.com/gujinghui, https://github.com/eellison ghstack dependencies: #168966
ghstack-source-id: a673ac8 Pull Request resolved: pytorch/pytorch#168966
Stack from ghstack (oldest at bottom):
Motivation
This PR aims to introduce
XPUPluggableAllocatorand we make it as simple as possible. The follow-up PR would introduce the code related to the Python frontend part.