mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
# 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 |
||
|---|---|---|
| .. | ||
| impl | ||
| test | ||
| CMakeLists.txt | ||
| XPUCachingAllocator.cpp | ||
| XPUCachingAllocator.h | ||
| XPUDeviceProp.h | ||
| XPUException.h | ||
| XPUFunctions.cpp | ||
| XPUFunctions.h | ||
| XPUMacros.h | ||
| XPUStream.cpp | ||
| XPUStream.h | ||