pytorch/c10/xpu
Yu, Guangye 3b3aac0cde Filter out iGPU if dGPU is found on XPU (#144378)
# Motivation
for https://github.com/pytorch/pytorch/issues/143914
On Windows, there are two separate SYCL platforms for iGPU and dGPU. To simplify the logic, we will exclude iGPUs when a dGPU is present. This ensures that all XPU devices enumerated by PyTorch share the same SYCL context.

Now I generalize the logic as below:
1. We find the first L0 platform containing at least one dGPU and enumerate all dGPUs of that platform.
2. If no dGPU is found, we find the first L0 platform containing iGPU and enumerate all iGPUs of that platform.
3. No GPU is found (neither iGPU nor dGPU).
Pull Request resolved: https://github.com/pytorch/pytorch/pull/144378
Approved by: https://github.com/EikanWang, https://github.com/gujinghui
2025-01-29 15:53:16 +00:00
..
impl Fix torch.accelerator api abort when passing invaild device (#143550) 2024-12-23 03:44:22 +00:00
test Set RUNPATH on CUDA and XPU tests (#144305) 2025-01-26 08:40:22 +00:00
CMakeLists.txt
XPUCachingAllocator.cpp Fix xpu memory stats error (#135818) 2024-09-13 02:41:21 +00:00
XPUCachingAllocator.h [Intel GPU] Add XPU memory-related APIs (#129919) 2024-09-07 11:15:17 +00:00
XPUDeviceProp.h Add architecture to XPU device property (#138186) 2024-11-13 03:35:13 +00:00
XPUException.h
XPUFunctions.cpp Filter out iGPU if dGPU is found on XPU (#144378) 2025-01-29 15:53:16 +00:00
XPUFunctions.h Fix torch.accelerator api abort when passing invaild device (#143550) 2024-12-23 03:44:22 +00:00
XPUMacros.h
XPUStream.cpp Add low priority XPU Stream (#141119) 2024-12-31 11:15:45 +00:00
XPUStream.h Add low priority XPU Stream (#141119) 2024-12-31 11:15:45 +00:00