You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ dpkg --list | grep -iE "igc|gmm|opencl|level-zero|fc|ocloc|libze|intel-oneapi"
ii clinfo 3.0.23.01.25-1build1
ii intel-igc-cm 1.0.176.54074-1029~24.04
ii intel-igc-core-2 2.36.3
ii intel-ocloc 26.22.38646.4-0
ii intel-oneapi-runtime-dpcpp-sycl-opencl-cpu 2026.1.0-235
ii intel-oneapi-runtime-opencl 2026.1.0-235
rc intel-opencl-icd 26.22.38646.4-0
ii libigc1 1.0.17791.16-1032~24.04
ii libigdfcl1 1.0.17791.16-1032~24.04
ii libigdgmm12:amd64 22.10.0
ii libze-intel-gpu1 26.22.38646.4-0
ii libze1 1.17.44.0-1022~24.04
ii ocl-icd-libopencl1:amd64 2.3.2-1build1
Driver Installation Details
Installation method: Intel official APT repository + oneAPI installer
GPU is detected and basic operations work, but kernel compilation fails for any non-trivial computation. Specifically:
torch.xpu.is_available() returns True
torch.xpu.device_count() returns 1
Data transfer to XPU device works (e.g., torch.randn(10,10).to("xpu"))
Element-wise operations work (e.g., x + 1.0)
Matrix multiplication fails: x @ x.T → RuntimeError: could not create an engine
torch.xpu.get_device_name(0) segfaults
The SYCL runtime has Battlemage device definitions (intel_gpu_bmg_g21) and IGC has Xe2 code (AllowSIMD16DropForXE2Plus), suggesting the PCI ID → architecture mapping or kernel compilation flag path is broken.
Expected Behavior
Kernel compilation should succeed for all operations on the Arc B580 (Battlemage G21), including matrix multiplication and other non-trivial GPU computations. torch.xpu.get_device_name(0) should return the device name without segfaulting.
Reproduction Rate
Always reproduces - 100%
Steps to Reproduce
Install Intel GPU driver 26.22.38646.4-0 with IGC 2.36.3
Observe RuntimeError: could not create an engine on the matmul line
Optionally, run torch.xpu.get_device_name(0) to observe segfault
Regression Information
Is this a regression?
Yes, this is a regression - functionality that previously worked is now broken
This is a new GPU (Battlemage G21) and has never worked correctly with this software stack. Not a regression per se, but a missing/incomplete platform enablement.
Diagnostics & Logs
API Call Logs
Not yet collected with Unitrace. Can provide if needed.
strace Logs
Not yet collected. Can provide if needed.
System Logs / dmesg Output
$ dmesg | grep -i -E 'i915|xe|drm|gpu|bmg|battlemage|b080|error|fault|fail'
(No relevant GPU error messages found in dmesg)
Backtrace
Not yet collected. The get_device_name(0) call segfaults - can provide gdb backtrace if needed.
Reproducer Information
Source Code / Reproducer
importtorchimportintel_extension_for_pytorchx=torch.randn(10, 10).to("xpu")
y=x @ x.T# RuntimeError: could not create an engine
Command Line / Application Details
Run the above Python script with PyTorch 2.6.0+xpu and Intel oneAPI 2026.1.0 environment sourced.
oneAPI 2026.1 device_architecture.def lists BMG G21 and G31
Combinations tried:
torch 2.6.0+pip + SYCL 2025.0.2 → this error (could not create an engine)
torch 2.6.0+conda + SYCL 2025.3.2 → "device architecture not supported"
torch 2.8.0+oneAPI + SYCL 9 → ABI mismatch
Suspected root cause: The Level Zero → IGC kernel compilation path may not correctly map the Battlemage G21 PCI ID (8086:b080) to the Xe2 compilation target, despite both SYCL and IGC having the necessary definitions.
Please investigate whether the kernel compilation path correctly handles the Battlemage G21 PCI ID. Happy to provide any additional logs or run further diagnostics.
Pre-submission Checklist
System Information
GPU Hardware
Intel Arc B580 (Battlemage G21) [8086:b080]
DRI Devices Information
GPU Detailed Information (lspci output)
Driver Version
26.22.38646.4-0
Installed GPU Driver Packages
Driver Installation Details
Linux Distribution
Ubuntu 24.04 LTS
Kernel Version & Boot Parameters
Issue Description
Actual Behavior
GPU is detected and basic operations work, but kernel compilation fails for any non-trivial computation. Specifically:
torch.xpu.is_available()returnsTruetorch.xpu.device_count()returns1torch.randn(10,10).to("xpu"))x + 1.0)x @ x.T→RuntimeError: could not create an enginetorch.xpu.get_device_name(0)segfaultsThe SYCL runtime has Battlemage device definitions (
intel_gpu_bmg_g21) and IGC has Xe2 code (AllowSIMD16DropForXE2Plus), suggesting the PCI ID → architecture mapping or kernel compilation flag path is broken.Expected Behavior
Kernel compilation should succeed for all operations on the Arc B580 (Battlemage G21), including matrix multiplication and other non-trivial GPU computations.
torch.xpu.get_device_name(0)should return the device name without segfaulting.Reproduction Rate
Always reproduces - 100%
Steps to Reproduce
RuntimeError: could not create an engineon the matmul linetorch.xpu.get_device_name(0)to observe segfaultRegression Information
Is this a regression?
This is a new GPU (Battlemage G21) and has never worked correctly with this software stack. Not a regression per se, but a missing/incomplete platform enablement.
Diagnostics & Logs
API Call Logs
Not yet collected with Unitrace. Can provide if needed.
strace Logs
Not yet collected. Can provide if needed.
System Logs / dmesg Output
Backtrace
Not yet collected. The
get_device_name(0)call segfaults - can provide gdb backtrace if needed.Reproducer Information
Source Code / Reproducer
Command Line / Application Details
Run the above Python script with PyTorch 2.6.0+xpu and Intel oneAPI 2026.1.0 environment sourced.
Additional Information
oneAPI Version
Additional Notes
strings libsycl.so.8 | grep bmg→intel_gpu_bmg_g21,intel_gpu_bmg_g31— SYCL knows about BMGstrings /usr/local/lib/libigc.so.2 | grep Xe2→AllowSIMD16DropForXE2Plus,LscInstructionXe2— IGC has Xe2 codedevice_architecture.deflists BMG G21 and G31could not create an engine)Please investigate whether the kernel compilation path correctly handles the Battlemage G21 PCI ID. Happy to provide any additional logs or run further diagnostics.