intel / intel/torch-xpu-ops

test_foreach_xpu.py fail to collect on BMG

Closed
#5,291 1 comment 0 reactions 1 assignee Claimed by @pbielak View on GitHub
regression skipped_bmg
Dominant language
Python
Stars
113
Forks
128
Avg merge
5d 9h
Merged PRs (30d)
112

Description

### 🐛 Describe the bug

Cases:
op_ut,,third_party.torch-xpu-ops.test.xpu.test_foreach_xpu

## ErrorLog
```bash
==================================== ERRORS ====================================
___ ERROR collecting third_party/torch-xpu-ops/test/xpu/test_foreach_xpu.py ____
ImportError while importing test module '/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_foreach_xpu.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/github/home/.local/share/uv/python/cpython-3.10-linux-x86_64-gnu/lib/python3.10/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_foreach_xpu.py:51: in
from test_foreach import TestForeach
E ImportError: cannot import name 'TestForeach' from 'test_foreach' (/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/../../../../test/test_foreach.py)
- generated xml file: /__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/op_ut_with_skip.test_foreach_xpu.xml -
=========================== short test summary info ============================
ERROR test_foreach_xpu.py
```

## Pytorch
latest good : [ca66d98](https://github.com/pytorch/pytorch/commit/ca66d9844119d868477faa88c782bd46495e1783)
current : [81deebd](https://github.com/pytorch/pytorch/commit/81deebd0497f96495b563af4155b99b372d8022c)
## Torch-xpu-ops
latest good : https://github.com/intel/torch-xpu-ops/commit/d6fa1aaa5d0c5100624017d22ae7932f0bd9389f
current : 5cdd4e46bd058506f1620944b27b87056e415cc9

### Versions

Detail
Collecting environment information...
PyTorch version: 2.15.0a0+git81deebd
Is debug build: False
CUDA used to build PyTorch: None
ROCm SDK used to build PyTorch: N/A
HIP used to build PyTorch: N/A

[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] mypy==1.16.0
[pip3] mypy_extensions==1.1.0
[pip3] numpy==1.24.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.15.0a0+git81deebd
[pip3] torchao==0.19.0.dev20260909+xpu
[pip3] torchaudio==2.11.0a0+b85c99c
[pip3] torchvision==0.30.0a0+ac8d215
[pip3] triton-xpu==3.8.0+git1e2d42a0
[pip3] umf==1.1.0
[conda] No relevant packages

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.