intel / intel/torch-xpu-ops

[PTL][XPU][WSL]140 UTs fail on WSL (Ubuntu 26.04) in Windows 11 with Intel PTLP XPU (Intel(R) Graphics [0xb080]) with "RuntimeError: The device ... doesn't support querying the available free memory"

Open
#4,873 0 comments 0 reactions 0 assignees View on GitHub
hw: PTL os: WSL test: ut
Dominant language
Python
Stars
113
Forks
128
Avg merge
5d 13h
Merged PRs (30d)
107

Description

### 🐛 Describe the bug

### 🐛 Describe the bug

140 failures (0.3%) on WSL (Ubuntu 26.04) in Windows 11 with Intel PTLP XPU (Intel(R) Graphics
[0xb080]) with `RuntimeError: The device (Intel(R) Graphics [0x...]) doesn't support querying the
available free memory.` Spread across 16 modules; largest are `test_reductions_xpu` (36),
`test_tensor_creation_ops_xpu` (27), `test_nn_xpu` (17), `test_optim_xpu` (15).

### Affected Test Cases

```
Module breakdown (largest contributors):
test_reductions_xpu.py — 36 failures
test_tensor_creation_ops_xpu.py — 27 failures
test_nn_xpu.py — 17 failures
test_optim_xpu.py — 15 failures
(12 more modules with smaller counts, 140 total)
```

Full per-test list not enumerated in the source report — see `ut_skip.log` for exact test IDs.

### Reproduction

```
# Installing UT requirements
cd ${PYTORCH_ROOT_DIR}
python -m pip install -r .ci/docker/requirements-ci.txt
python -m pip install pytest pytest-timeout pytest-xdist

# UT skip
cd $PYTORCH_ROOT_DIR/third_party/torch-xpu-ops/test/xpu
export PYTEST_ADDOPTS="-v --timeout 600 --timeout_method=thread -n 1"
export PYTORCH_TEST_WITH_SLOW=1
export PYTORCH_ENABLE_XPU_FALLBACK=1
time python run_test_with_skip.py | tee $HOME/ut_skip.log
```

### Error Message

ut_skip.log

```
RuntimeError: The device (Intel(R) Graphics [0x...]) doesn't support querying the available free
memory. You can file an issue at https://github.com/pytorch/pytorch/issues to help us prioritize
its implementation.
```

### Versions

PyTorch version: 2.14.0.dev20260803+xpu
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: Ubuntu 26.04 LTS (x86_64)
GCC version: (Ubuntu 15.2.0-16ubuntu1) 15.2.0
Clang version: Could not collect
CMake version: version 3.31.6
Libc version: glibc-2.43

Python version: 3.12.13 | packaged by conda-forge | (main, Mar 5 2026, 16:50:00) [GCC 14.3.0] (64-bit runtime)
Python platform: Linux-6.18.33.2-microsoft-standard-WSL2-x86_64-with-glibc2.43
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
Is XPU available: True
XPU used to build PyTorch: 20260100
Intel GPU driver version:
* intel-opencl-icd: 26.22.38646.6-1~26.04~ppa1
* libze1: 1.28.6-1~26.04~ppa1
Intel GPU models onboard:
N/A
Intel GPU models detected:
* [0] _XpuDeviceProperties(name='Intel(R) Graphics [0xb080]', platform_name='Intel(R) oneAPI Unified Runtime over Level-Zero V2', type='gpu', device_id=0xB080, uuid=868080b0-0400-0000-0002-000000000000, driver_version='1.15.38646+6', total_memory=16900MB, local_mem_size=128KB, last_level_cache_size=16384KB, max_compute_units=96, memory_clock_rate=0MHz, memory_bus_width=64-bit, gpu_eu_count=96, gpu_subslice_count=12, max_work_group_size=1024, max_num_sub_groups=64, sub_group_sizes=[16 32], has_fp16=1, has_fp64=1, has_atomic64=1, is_integrated_gpu=1)
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: False
Caching allocator config: N/A

CPU:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 46 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: GenuineIntel
Model name: Genuine Intel(R) 0000
CPU family: 6
Model: 204
Thread(s) per core: 1
Core(s) per socket: 16
Socket(s): 1
Stepping: 2
BogoMIPS: 5990.40
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology tsc_reliable nonstop_tsc cpuid tsc_known_freq pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves avx_vnni vnmi umip waitpkg gfni vaes vpclmulqdq rdpid movdiri movdir64b fsrm md_clear serialize ibt flush_l1d arch_capabilities
Virtualization: VT-x
Hypervisor vendor: Microsoft
Virtualization type: full
L1d cache: 768 KiB (16 instances)
L1i cache: 1 MiB (16 instances)
L2 cache: 48 MiB (16 instances)
L3 cache: 18 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Not affected
Vulnerability Ghostwrite: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Old microcode: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Mitigation; Enhanced IBRS
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2: Mitigation; Enhanced / Automatic IBRS; IBPB conditional; PBRSB-eIBRS SW sequence; BHI BHI_DIS_S
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Not affected

Versions of relevant libraries:
[pip3] dpcpp-cpp-rt==2026.1.0
[pip3] impi-rt==2021.18.1
[pip3] intel-cmplr-lib-rt==2026.1.0
[pip3] intel-cmplr-lib-ur==2026.1.0
[pip3] intel-cmplr-lic-rt==2026.1.0
[pip3] intel-opencl-rt==2026.1.0
[pip3] intel-openmp==2026.1.0
[pip3] intel-pti==1.0.1
[pip3] intel-sycl-rt==2026.1.0
[pip3] mkl==2026.1.0
[pip3] mkl-include==2024.2.0
[pip3] mkl-static==2024.2.0
[pip3] mypy==1.16.0
[pip3] mypy_extensions==1.1.0
[pip3] numpy==1.26.4
[pip3] nvidia-cuda-cupti==13.3.75
[pip3] oneccl==2022.1.1
[pip3] oneccl-devel==2022.1.1
[pip3] onemkl-license==2026.1.0
[pip3] onemkl-sycl-blas==2026.1.0
[pip3] onemkl-sycl-dft==2026.1.0
[pip3] onemkl-sycl-lapack==2026.1.0
[pip3] onemkl-sycl-rng==2026.1.0
[pip3] onemkl-sycl-sparse==2026.1.0
[pip3] onnx==1.21.0
[pip3] onnx-ir==0.1.16
[pip3] onnxscript==0.6.2
[pip3] optree==0.13.0
[pip3] tbb==2023.1.0
[pip3] tcmlib==1.5.0
[pip3] torch==2.14.0.dev20260803+xpu
[pip3] torchao==0.18.0+xpu
[pip3] torchaudio==2.11.0.dev20260804+xpu
[pip3] torchvision==0.29.0.dev20260804+xpu
[pip3] triton-xpu==3.7.2+git5fcc14d9
[pip3] umf==1.1.0
[conda] dpcpp-cpp-rt 2026.1.0 pypi_0 pypi
[conda] impi-rt 2021.18.1 pypi_0 pypi
[conda] intel-cmplr-lib-rt 2026.1.0 pypi_0 pypi
[conda] intel-cmplr-lib-ur 2026.1.0 pypi_0 pypi
[conda] intel-cmplr-lic-rt 2026.1.0 pypi_0 pypi
[conda] intel-opencl-rt 2026.1.0 pypi_0 pypi
[conda] intel-openmp 2026.1.0 pypi_0 pypi
[conda] intel-pti 1.0.1 pypi_0 pypi
[conda] intel-sycl-rt 2026.1.0 pypi_0 pypi
[conda] mkl 2026.1.0 pypi_0 pypi
[conda] mkl-include 2024.2.0 pypi_0 pypi
[conda] mkl-static 2024.2.0 pypi_0 pypi
[conda] numpy 1.26.4 pypi_0 pypi
[conda] nvidia-cuda-cupti 13.3.75 pypi_0 pypi
[conda] oneccl 2022.1.1 pypi_0 pypi
[conda] oneccl-devel 2022.1.1 pypi_0 pypi
[conda] onemkl-license 2026.1.0 pypi_0 pypi
[conda] onemkl-sycl-blas 2026.1.0 pypi_0 pypi
[conda] onemkl-sycl-dft 2026.1.0 pypi_0 pypi
[conda] onemkl-sycl-lapack 2026.1.0 pypi_0 pypi
[conda] onemkl-sycl-rng 2026.1.0 pypi_0 pypi
[conda] onemkl-sycl-sparse 2026.1.0 pypi_0 pypi
[conda] optree 0.13.0 pypi_0 pypi
[conda] tbb 2023.1.0 pypi_0 pypi
[conda] tcmlib 1.5.0 pypi_0 pypi
[conda] torch 2.14.0.dev20260803+xpu pypi_0 pypi
[conda] torchao 0.18.0+xpu pypi_0 pypi
[conda] torchaudio 2.11.0.dev20260804+xpu pypi_0 pypi
[conda] torchvision 0.29.0.dev20260804+xpu pypi_0 pypi
[conda] triton-xpu 3.7.2+git5fcc14d9 pypi_0 pypi
[conda] umf 1.1.0 pypi_0 pypi

Contributor guide

Open the contributing guide

Research direction

Start in third_party/torch-xpu-ops/test/xpu and run run_test_with_skip.py with the issue's PYTEST_ADDOPTS, then inspect ut_skip.log for the exact failing tests. Compare the failures across test_reductions_xpu.py, test_tensor_creation_ops_xpu.py, test_nn_xpu.py, and test_optim_xpu.py to identify the shared free-memory query path. Done means the reported unsupported-query failures have an agreed handling and the affected tests pass on the stated WSL XPU setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, ubuntu
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.