Add Xe2-HPG instruction set reference for Intel Arc Pro B50/B60/B65/B70

- xe2-hpg-isa.md: complete Xe2 EU instruction set (64 instructions) with
  opcodes, operands, modifiers and type rules, extracted from Intel's IGA
  assembler and cross-checked against GED (IGC commit 58f8018). Also covers
  math/sync functions, registers, SWSB, LSC messages, DPAS/XMX, data types
  and API exposure.
- intel-arc-pro-b50/b60/b65/b70.md: per-card profiles (compute resources,
  throughput, memory, compiler targets, tuning notes).
- README.md: comparison table, accuracy notes and sources.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
claudeandClaude Opus 5.5 committed 2026-10-28 21:48:42 +01:00
commit d28309dc85
6 files changed
+837

No files matched your search

+69
View File
@@ -0,0 +1,69 @@
# Intel Arc Pro B-Series: GPU instruction sets
All four cards run the **same ISA: Xe2-HPG (Battlemage)**. Code written for one runs on all of them.
They differ in die, unit count, clocks and memory, and in the IP version used for AOT-compiled binaries.
| File | Contents |
|---|---|
| [xe2-hpg-isa.md](xe2-hpg-isa.md) | Shared ISA reference: **complete list of all 64 Xe2 instructions** with opcodes, operands, modifiers and type rules; math/sync functions; registers; memory messages; DPAS/XMX; data types; API exposure; asm dumping |
| [intel-arc-pro-b50.md](intel-arc-pro-b50.md) | B50 profile (BMG-G21, 16 Xe-cores, 16 GB) |
| [intel-arc-pro-b60.md](intel-arc-pro-b60.md) | B60 profile (BMG-G21, 20 Xe-cores, 24 GB) |
| [intel-arc-pro-b65.md](intel-arc-pro-b65.md) | B65 profile (BMG-G31, 20 Xe-cores, 32 GB) |
| [intel-arc-pro-b70.md](intel-arc-pro-b70.md) | B70 profile (BMG-G31, 32 Xe-cores, 32 GB) |
## Comparison
| | **B50** | **B60** | **B65** | **B70** |
|---|---|---|---|---|
| ISA | Xe2-HPG | Xe2-HPG | Xe2-HPG | Xe2-HPG |
| Die | BMG-G21 | BMG-G21 | BMG-G31 | BMG-G31 |
| IP version | 20.1.4 | 20.1.4 | 20.2.0 | 20.2.0 |
| SYCL target | `intel_gpu_bmg_g21` | `intel_gpu_bmg_g21` | `intel_gpu_bmg_g31` | `intel_gpu_bmg_g31` |
| Xe-cores | 16 | 20 | 20 | 32 |
| Vector engines / HW threads | 128 / 1,024 | 160 / 1,280 | 160 / 1,280 | 256 / 2,048 |
| XMX engines | 128 | 160 | 160 | 256 |
| RT units | 16 | 20 | 20 | 32 |
| Boost clock | ~2.6 GHz | ~2.4 GHz | ~2.4 GHz | 2.8 GHz |
| FP32 TFLOPS | 10.65 | 12.28 | ~12.28 | ~22.94 |
| FP16/BF16 XMX TFLOPS (derived) | ~85 | ~98 | ~98 | ~184 |
| INT8 TOPS (dense) | 170 | 197 | 197 | 367 |
| VRAM | 16 GB GDDR6 | 24 GB GDDR6 | 32 GB GDDR6 | 32 GB GDDR6 |
| Bus / bandwidth | 128-bit / 224 GB/s | 192-bit / 456 GB/s | 256-bit / 608 GB/s | 256-bit / 608 GB/s |
| PCIe | 5.0 x8 electrical | 5.0 x8 electrical | 5.0 x16 | 5.0 x16 |
| Board power | 70 W | 120 to 200 W | 200 W | 160 to 290 W (ref. 230 W) |
### Common to all four (per Xe-core)
- 8 vector engines × SIMD16 FP32 = **256 FP32 FLOP/clk**
- 8 XMX engines = **2048 FP16/BF16 FLOP/clk** and **4096 INT8 OP/clk**
- 256 KB L1/SLM (up to 128 KB SLM per work-group); 8 threads per vector engine
- Sub-groups 16/32; GRF 128 × 64 B per thread (256 in large-GRF mode)
- DPAS: M ≤ 8, N = 16, K = 16 (FP16/BF16) / 32 (INT8) / 8 (TF32); also INT4/INT2 (via ESIMD)
- FP8 only as E5M2 conversions (`mov`, `srnd`); no E4M3, no FP8/FP4 matrix inputs
- Hardware `math`: inv, log₂, exp₂, sqrt, rsqrt, sin, cos (+ division/sqrt macro steps). No hardware pow, fdiv or integer divide.
## Accuracy notes
- **Intel datasheets** (March 2026) are the source for Xe-cores, XMX, RT units, INT8 TOPS, memory, bandwidth, bus width, PCIe and APIs.
They also give FP32 for B50/B60.
- **Press coverage** is the source for B65/B70 FP32, clocks, B70 power range and die size. These numbers are consistent with Intel's TOPS figures.
- **Derived** values (FP16 XMX TFLOPS, thread counts, ridge points, decode ceilings) are computed from per-Xe-core rates × units × boost clock.
They are peak values, not measured.
- Intel has **not published an Xe2 ISA/PRM document**. The complete instruction list, function codes, registers and memory
messages are extracted from Intel's own assembler (IGA) and encoder library (GED) in the open-source Intel Graphics Compiler,
commit `58f8018` (2026-10-28). IGA's 64 Xe2 instructions match GED's Xe2 opcode list exactly. These sources define what the
hardware accepts, but not latencies or exact numerical behaviour.
## Sources
- Intel datasheets: [B50](https://www.intel.com/content/dam/www/central-libraries/us/en/documents/2026-03/datasheet-b50-gpu.pdf), [B60](https://www.intel.com/content/dam/www/central-libraries/us/en/documents/2026-03/datasheet-b60-gpu.pdf), [B65](https://www.intel.com/content/dam/www/central-libraries/us/en/documents/2026-03/datasheet-b65-gpu.pdf), [B70](https://www.intel.com/content/dam/www/central-libraries/us/en/documents/2026-03/datasheet-b70-gpu.pdf)
- [Intel oneAPI GPU Optimization Guide: Intel Xe GPU Architecture](https://www.intel.com/content/www/us/en/docs/oneapi/optimization-guide-gpu/2025-2/intel-xe-gpu-architecture.html)
- [SYCL `sycl_ext_oneapi_matrix` spec (XMX supported combinations)](https://github.com/intel/llvm/blob/sycl/sycl/doc/extensions/experimental/sycl_ext_matrix/sycl_ext_oneapi_matrix.asciidoc)
- [intel/llvm SYCL UsersManual (`-fsycl-targets`, IP versions)](https://github.com/intel/llvm/blob/sycl/sycl/doc/UsersManual.md)
- [MLIR XeGPU uArch: IntelGpuXe2.h](https://mlir.llvm.org/doxygen/IntelGpuXe2_8h_source.html)
- Intel Graphics Compiler: [IGA Xe2 opcode table (`ModelXe2.hpp`)](https://github.com/intel/intel-graphics-compiler/blob/master/visa/iga/IGALibrary/Models/bxml/ModelXe2.hpp), [IGA register table (`Models.cpp`)](https://github.com/intel/intel-graphics-compiler/blob/master/visa/iga/IGALibrary/Models/Models.cpp), [IGA LSC decoder](https://github.com/intel/intel-graphics-compiler/blob/master/visa/iga/IGALibrary/Backend/Messages/MessageDecoderLSC.cpp), [GED enumerations (per-platform values)](https://github.com/intel/intel-graphics-compiler/blob/master/visa/iga/GEDLibrary/GED_external/build/autogen-intel64/ged_enumerations.h)
- [SYCL ESIMD `dpas_argument_type`](https://github.com/intel/llvm/blob/sycl/sycl/include/sycl/ext/intel/esimd/xmx/common.hpp)
- [Phoronix: Intel Announces Arc Pro B70](https://www.phoronix.com/news/Intel-Arc-Pro-B70-Announced) · [ServeTheHome: Arc Pro B70 and B65](https://www.servethehome.com/intel-announces-arc-pro-b70-and-b65-video-cards-big-battlemage-brings-big-memory-for-ai-workstations/) · [HWCooling: B70/B65](https://www.hwcooling.net/intel-vydal-grafiky-s-velkym-gpu-battlemage-arc-pro-b70-a-b65/)
- [Phoronix: Mesa BMG-G31 IDs](https://phoronix.com/news/Intel-BMG-G31-Mesa-25.2)
- [Chips and Cheese: Intel's Battlemage Architecture](https://chipsandcheese.com/p/intels-battlemage-architecture) · [Notebookcheck: Xe2 XMX data types](https://www.notebookcheck.net/Intel-reveals-Xe2-Battlemage-GPU-architecture-initially-launching-with-Lunar-Lake-CPUs-in-low-power-form.843925.0.html)
- [Intel Community: Xe2 PRM request](https://community.intel.com/t5/Graphics/Xe2-Programmer-s-Reference-Manual/td-p/1708752)
+65
View File
@@ -0,0 +1,65 @@
# Intel Arc Pro B50: GPU instruction set and hardware profile
**ISA:** Xe2-HPG (Battlemage), the same instruction set as B60, B65 and B70. Full ISA details are in [xe2-hpg-isa.md](xe2-hpg-isa.md).
## Identity
| Item | Value |
|---|---|
| Die | BMG-G21 (cut down: 16 of 20 Xe-cores) |
| GFX IP version | 20.1.4 |
| SYCL AOT target | `-fsycl-targets=intel_gpu_bmg_g21` (or `intel_gpu_bmg`) |
| ocloc device | `-device 20.1.4` |
| Board | Dual-slot, small form factor. Intel-branded and partner cards. |
## Compute resources
| Resource | Count |
|---|---|
| Xe-cores | **16** |
| Vector Engines (XVE, SIMD16 FP32) | 128 |
| Hardware threads | 1,024 (8 per XVE) |
| FP32 lanes | 2,048 |
| XMX matrix engines | 128 |
| Ray-tracing units | 16 |
| Resident work-items | 16,384 at SIMD16 / 32,768 at SIMD32 (small-GRF mode) |
| Total GRF | 8 MB (1,024 threads × 8 KB) |
| SLM | 128 KB per Xe-core (2 MB total), max 128 KB per work-group |
## Throughput (dense, peak)
| Metric | Value | Source |
|---|---|---|
| Boost clock | ~2.60 GHz | derived from Intel FP32 spec |
| FP32 (vector) | **10.65 TFLOPS** | Intel datasheet |
| FP16 / BF16 (XMX) | ~85.2 TFLOPS | derived: 16 × 2048 × 2.6 GHz |
| INT8 (XMX) | **170 TOPS** | Intel datasheet |
## Memory and I/O
| Item | Value |
|---|---|
| VRAM | **16 GB GDDR6**, 128-bit, 14 Gbps |
| Bandwidth | **224 GB/s** |
| Compute/bandwidth ridge | ~380 FLOP/byte (XMX FP16), ~48 FLOP/byte (FP32) |
| PCIe | Gen 5.0 x16 physical, **x8 electrical**; Gen 4 compatible |
| Board power | **70 W** |
| Display | up to 4 outputs; up to 2 × 8K60 |
| APIs | DirectX 12 Ultimate, Vulkan 1.3, OpenCL 3.0, OpenGL 4.6, oneAPI, OpenVINO |
| Media | AV1, HEVC, H.264, VP9 encode/decode |
## ISA quick reference (Xe2-HPG)
- SIMD16 native; sub-group sizes **16 / 32**; max work-group 1024.
- 64-byte GRF registers; 128 per thread (8 KB) or 256 in large-GRF mode (4 threads/XVE).
- **DPAS** (XMX): M = 1 to 8, N = 16, K = 16 (FP16/BF16), 32 (INT8), 8 (TF32); INT4/INT2 too. No FP8 inputs.
- All 64 instructions with opcodes and type rules: [xe2-hpg-isa.md §4](xe2-hpg-isa.md#4-complete-instruction-set-xe2-eu-isa).
- `dp4a` INT8 dot product on the vector engines; native FP64 (low rate).
- 2D block load/store/prefetch with VNNI/transpose feeds DPAS.
## Tuning notes
- This is the most bandwidth-limited card of the four (224 GB/s). LLM token generation is memory-bound.
Rough ceiling: tokens/s ≈ 224 GB/s ÷ bytes of weights read per token. For example, an ~8B model at Q4 (~4.7 GB) tops out around 45 tok/s.
- 16 GB fits up to ~14B-parameter models at 4-bit with room for KV cache.
- Note: Intel's B50 datasheet lists the cores as "16 Xe-HPG". The die is Battlemage, so the cores are Xe2-HPG.
+66
View File
@@ -0,0 +1,66 @@
# Intel Arc Pro B60: GPU instruction set and hardware profile
**ISA:** Xe2-HPG (Battlemage), the same instruction set as B50, B65 and B70. Full ISA details are in [xe2-hpg-isa.md](xe2-hpg-isa.md).
## Identity
| Item | Value |
|---|---|
| Die | BMG-G21 (all 20 Xe-cores, same die as Arc B580) |
| GFX IP version | 20.1.4 |
| SYCL AOT target | `-fsycl-targets=intel_gpu_bmg_g21` (or `intel_gpu_bmg`) |
| ocloc device | `-device 20.1.4` |
| Board | Partner-branded cards only (Intel's own version is not sold) |
## Compute resources
| Resource | Count |
|---|---|
| Xe-cores | **20** |
| Vector Engines (XVE, SIMD16 FP32) | 160 |
| Hardware threads | 1,280 (8 per XVE) |
| FP32 lanes | 2,560 |
| XMX matrix engines | 160 |
| Ray-tracing units | 20 |
| Resident work-items | 20,480 at SIMD16 / 40,960 at SIMD32 (small-GRF mode) |
| Total GRF | 10 MB (1,280 threads × 8 KB) |
| SLM | 128 KB per Xe-core (2.5 MB total), max 128 KB per work-group |
## Throughput (dense, peak)
| Metric | Value | Source |
|---|---|---|
| Boost clock | ~2.40 GHz | derived from Intel FP32 spec |
| FP32 (vector) | **12.28 TFLOPS** | Intel datasheet |
| FP16 / BF16 (XMX) | ~98.3 TFLOPS | derived: 20 × 2048 × 2.4 GHz |
| INT8 (XMX) | **197 TOPS** | Intel datasheet |
## Memory and I/O
| Item | Value |
|---|---|
| VRAM | **24 GB GDDR6**, 192-bit, 19 Gbps |
| Bandwidth | **456 GB/s** |
| Compute/bandwidth ridge | ~216 FLOP/byte (XMX FP16), ~27 FLOP/byte (FP32) |
| PCIe | Gen 5.0 x16 physical, **x8 electrical**; Gen 4 compatible |
| Board power | **120 to 200 W** (configurable by partner) |
| Display | up to 4 outputs (varies by partner); up to 2 × 8K60 |
| APIs | DirectX 12 Ultimate, Vulkan 1.3, OpenCL 3.0, OpenGL 4.6, oneAPI, OpenVINO |
| Media | AV1, HEVC, H.264, VP9 encode/decode |
## ISA quick reference (Xe2-HPG)
- SIMD16 native; sub-group sizes **16 / 32**; max work-group 1024.
- 64-byte GRF registers; 128 per thread (8 KB) or 256 in large-GRF mode (4 threads/XVE).
- **DPAS** (XMX): M = 1 to 8, N = 16, K = 16 (FP16/BF16), 32 (INT8), 8 (TF32); INT4/INT2 too. No FP8 inputs.
- All 64 instructions with opcodes and type rules: [xe2-hpg-isa.md §4](xe2-hpg-isa.md#4-complete-instruction-set-xe2-eu-isa).
- `dp4a` INT8 dot product on the vector engines; native FP64 (low rate).
- 2D block load/store/prefetch with VNNI/transpose feeds DPAS.
## Tuning notes
- Same compute as the B65, but 25% less bandwidth and 8 GB less VRAM.
- LLM decode ceiling: tokens/s ≈ 456 GB/s ÷ bytes of weights per token. A ~14B model at Q4 (~8.5 GB) is capped near 54 tok/s.
- Intel markets "Linux multi-GPU LLM support" for this card (multiple cards, model split across their VRAM).
Dual-GPU B60 boards show up as two separate x8 devices and need x8/x8 slot bifurcation.
- Because the link is x8 electrical, PCIe Gen 5 hosts matter for multi-GPU tensor-parallel traffic.
+65
View File
@@ -0,0 +1,65 @@
# Intel Arc Pro B65: GPU instruction set and hardware profile
**ISA:** Xe2-HPG (Battlemage), the same instruction set as B50, B60 and B70. Full ISA details are in [xe2-hpg-isa.md](xe2-hpg-isa.md).
## Identity
| Item | Value |
|---|---|
| Die | BMG-G31 ("big Battlemage"), cut down to 20 of 32 Xe-cores |
| GFX IP version | 20.2.0 |
| SYCL AOT target | `-fsycl-targets=intel_gpu_bmg_g31` (or `intel_gpu_bmg`) |
| ocloc device | `-device 20.2.0` |
| Board | Partner cards only (no Intel reference card) |
## Compute resources
| Resource | Count |
|---|---|
| Xe-cores | **20** |
| Vector Engines (XVE, SIMD16 FP32) | 160 |
| Hardware threads | 1,280 (8 per XVE) |
| FP32 lanes | 2,560 |
| XMX matrix engines | 160 |
| Ray-tracing units | 20 |
| Resident work-items | 20,480 at SIMD16 / 40,960 at SIMD32 (small-GRF mode) |
| Total GRF | 10 MB (1,280 threads × 8 KB) |
| SLM | 128 KB per Xe-core (2.5 MB total), max 128 KB per work-group |
## Throughput (dense, peak)
| Metric | Value | Source |
|---|---|---|
| Clocks | ~2.0 GHz base / ~2.4 GHz boost | press coverage; boost consistent with Intel TOPS |
| FP32 (vector) | ~12.28 TFLOPS | press coverage (= 20 × 256 × 2.4 GHz) |
| FP16 / BF16 (XMX) | ~98.3 TFLOPS | derived: 20 × 2048 × 2.4 GHz |
| INT8 (XMX) | **197 TOPS** | Intel datasheet |
## Memory and I/O
| Item | Value |
|---|---|
| VRAM | **32 GB GDDR6**, 256-bit, 19 Gbps |
| Bandwidth | **608 GB/s** |
| Compute/bandwidth ridge | ~162 FLOP/byte (XMX FP16), ~20 FLOP/byte (FP32) |
| PCIe | **Gen 5 x16 native** |
| Board power | **200 W** (single design point) |
| Display | 4 × DisplayPort 2.1 |
| APIs | DirectX 12 Ultimate, Vulkan 1.3, OpenCL 3.0, OpenGL 4.6, oneAPI, OpenVINO |
| Media | AV1, HEVC, H.264 encode/decode |
## ISA quick reference (Xe2-HPG)
- SIMD16 native; sub-group sizes **16 / 32**; max work-group 1024.
- 64-byte GRF registers; 128 per thread (8 KB) or 256 in large-GRF mode (4 threads/XVE).
- **DPAS** (XMX): M = 1 to 8, N = 16, K = 16 (FP16/BF16), 32 (INT8), 8 (TF32); INT4/INT2 too. No FP8 inputs.
- All 64 instructions with opcodes and type rules: [xe2-hpg-isa.md §4](xe2-hpg-isa.md#4-complete-instruction-set-xe2-eu-isa).
- `dp4a` INT8 dot product on the vector engines; native FP64 (low rate).
- 2D block load/store/prefetch with VNNI/transpose feeds DPAS.
## Tuning notes
- Same compute as the B60, on the bigger die. It has full 256-bit memory (608 GB/s), 32 GB, and a full x16 link.
This makes it the best bandwidth and VRAM per unit of compute of the four, which suits memory-bound LLM decode.
- LLM decode ceiling: tokens/s ≈ 608 GB/s ÷ bytes of weights per token. A ~32B model at Q4 (~19 GB) is capped near 32 tok/s.
- AOT binaries for `bmg_g21` are a different target. Build for `bmg_g31` or the `bmg` umbrella, or ship SPIR-V (JIT).
+66
View File
@@ -0,0 +1,66 @@
# Intel Arc Pro B70: GPU instruction set and hardware profile
**ISA:** Xe2-HPG (Battlemage), the same instruction set as B50, B60 and B65. Full ISA details are in [xe2-hpg-isa.md](xe2-hpg-isa.md).
## Identity
| Item | Value |
|---|---|
| Die | BMG-G31 ("big Battlemage"), full 32 Xe-cores; TSMC N5, ~368 mm², ~27.7 B transistors (press) |
| GFX IP version | 20.2.0 |
| SYCL AOT target | `-fsycl-targets=intel_gpu_bmg_g31` (or `intel_gpu_bmg`) |
| ocloc device | `-device 20.2.0` |
| Board | Intel reference card (blower) plus partner cards; launched 2026-03-25 at $949 |
## Compute resources
| Resource | Count |
|---|---|
| Xe-cores | **32** |
| Vector Engines (XVE, SIMD16 FP32) | 256 |
| Hardware threads | 2,048 (8 per XVE) |
| FP32 lanes | 4,096 |
| XMX matrix engines | 256 |
| Ray-tracing units | 32 |
| Resident work-items | 32,768 at SIMD16 / 65,536 at SIMD32 (small-GRF mode) |
| Total GRF | 16 MB (2,048 threads × 8 KB) |
| SLM | 128 KB per Xe-core (4 MB total), max 128 KB per work-group |
## Throughput (dense, peak)
| Metric | Value | Source |
|---|---|---|
| Clocks | 2.28 GHz base / 2.80 GHz boost | press coverage; boost consistent with Intel TOPS |
| FP32 (vector) | ~22.94 TFLOPS | press coverage (= 32 × 256 × 2.8 GHz) |
| FP16 / BF16 (XMX) | ~183.5 TFLOPS | derived: 32 × 2048 × 2.8 GHz |
| INT8 (XMX) | **367 TOPS** | Intel datasheet |
## Memory and I/O
| Item | Value |
|---|---|
| VRAM | **32 GB GDDR6**, 256-bit, 19 Gbps |
| Bandwidth | **608 GB/s** |
| Compute/bandwidth ridge | ~302 FLOP/byte (XMX FP16), ~38 FLOP/byte (FP32) |
| PCIe | **Gen 5 x16 native** |
| Board power | **160 to 290 W** configurable; Intel reference card 230 W |
| Display | 4 × DisplayPort 2.1 |
| APIs | DirectX 12 Ultimate, Vulkan 1.3, OpenCL 3.0, OpenGL 4.6, oneAPI, OpenVINO |
| Media | AV1, HEVC, H.264 encode/decode |
## ISA quick reference (Xe2-HPG)
- SIMD16 native; sub-group sizes **16 / 32**; max work-group 1024.
- 64-byte GRF registers; 128 per thread (8 KB) or 256 in large-GRF mode (4 threads/XVE).
- **DPAS** (XMX): M = 1 to 8, N = 16, K = 16 (FP16/BF16), 32 (INT8), 8 (TF32); INT4/INT2 too. No FP8 inputs.
- All 64 instructions with opcodes and type rules: [xe2-hpg-isa.md §4](xe2-hpg-isa.md#4-complete-instruction-set-xe2-eu-isa).
- `dp4a` INT8 dot product on the vector engines; native FP64 (low rate).
- 2D block load/store/prefetch with VNNI/transpose feeds DPAS.
## Tuning notes
- This card has the most compute of the four (~1.9× B60/B65) with the same 608 GB/s as the B65. Prefill, batched inference,
training and image/video generation scale with the extra Xe-cores, while single-stream LLM decode is roughly equal to the B65.
- LLM decode ceiling: tokens/s ≈ 608 GB/s ÷ bytes of weights per token. A ~32B model at Q4 (~19 GB) is capped near 32 tok/s.
- Fill all 32 Xe-cores: launch at least 32 work-groups (ideally several per Xe-core) or ≥ 2,048 sub-groups in flight.
- Board power is configurable, so sustained clocks (and therefore real FLOPS) depend on the partner/BIOS power limit.
+506
View File
@@ -0,0 +1,506 @@
# Xe2-HPG (Battlemage) GPU Instruction Set: shared reference
This applies to **all four cards**: Arc Pro B50 and B60 use the BMG-G21 die, and Arc Pro B65 and B70 use BMG-G31.
Both dies implement the same **Xe2-HPG** ISA. They differ in how many units are enabled, in clocks and memory, and in the
hardware IP version, which matters only for ahead-of-time (AOT) compiled binaries.
> **Where the instruction set comes from.** Intel has not published an Xe2 PRM (Programmer's Reference Manual).
> Sections 3 to 7 are extracted from Intel's own **IGA** assembler and its **GED** encoder library. Both are part of the
> open-source Intel Graphics Compiler (IGC), which every SYCL, OpenCL, Level Zero and oneAPI program on these cards goes through.
> The extraction used IGC commit `58f8018` (2026-10-28).
> IGC maps Battlemage (`IGFX_XE2_HPG_CORE`) to IGA's `XE2` platform model, which Lunar Lake also uses.
> IGA and GED define which instructions, operand types, function codes and message types the hardware accepts.
> They do not document latencies or exact numerical behaviour, which only a PRM would give.
---
## 1. Identification / compiler targets
| Die | Cards | GFX IP version | SYCL AOT target | Umbrella target |
|---|---|---|---|---|
| BMG-G21 | Arc Pro B50, Arc Pro B60 (also B570/B580) | **20.1.4** | `intel_gpu_bmg_g21` | `intel_gpu_bmg` |
| BMG-G31 | Arc Pro B65, Arc Pro B70 | **20.2.0** | `intel_gpu_bmg_g31` | `intel_gpu_bmg` |
- The `intel_gpu_bmg` umbrella target is compatible with all `intel_gpu_bmg_g*` targets and with `intel_gpu_lnl_m` (Lunar Lake, also Xe2).
- SPIR-V/JIT binaries (the default without `-fsycl-targets`) run on both dies. The driver's IGC compiles them at load time.
- Linux PCI IDs `0xE220` to `0xE223` are identified as BMG-G31 in Mesa 25.2 and later.
- In IGA the platform is called `xe2` (aliases `2`, `lnl`). There is no separate Battlemage model.
```bash
# SYCL AOT for both Battlemage dies
icpx -fsycl -fsycl-targets=intel_gpu_bmg_g21,intel_gpu_bmg_g31 app.cpp -o app
```
```bash
# OpenCL C → native binary via ocloc (device given as IP version)
ocloc compile -file kernel.cl -device 20.2.0
```
---
## 2. Execution hierarchy
| Unit | Contents |
|---|---|
| **Xe-core** | 8 Vector Engines (XVE), 8 XMX matrix engines, 1 ray-tracing unit, 256 KB shared L1/SLM |
| **Vector Engine (XVE)** | 512-bit SIMD ALU (**16 × FP32 lanes**), 8 hardware threads |
| **XMX engine** | systolic matrix engine (DPAS), 2048-bit |
| **Per Xe-core per clock** | **256 FP32 FLOP** (128 FMA), **2048 FP16/BF16 FLOP** (XMX), **4096 INT8 OP** (XMX) |
- **Native SIMD width: 16.** Supported sub-group sizes: **16 and 32** (SIMD8 no longer exists; Xe-HPG/Alchemist had it).
- Instruction execution sizes: 1, 2, 4, 8, 16 or 32 channels.
- Hardware threads per XVE: 8 (64 per Xe-core).
- Max work-group size: **1024**.
- **SLM:** 128 KB per Xe-core and max 128 KB per work-group. It is carved out of the 256 KB L1/SLM.
- Last-level cache: 18 MB on the full BMG-G21 (B580). Intel has not published per-SKU values for the Pro cards.
The ISA and the oneAPI guide call this cache "L3". Marketing calls it "L2".
---
## 3. Registers
### General register file (GRF)
| Item | Value |
|---|---|
| GRF register width | **512 bit (64 bytes)**, i.e. one register holds 16 × FP32 |
| GRF per thread (default) | **128 registers = 8 KB** |
| GRF per thread (large-GRF mode) | **256 registers = 16 KB** (IGA's Xe2 model addresses `r0`–`r255`). Halves resident threads per XVE (8 → 4). |
Large-GRF mode trades occupancy for fewer register spills. It is useful for big DPAS tiles. With SIMD16 it caps the effective
work-group size at 512 (32 threads per Xe-core × 16 lanes).
- SYCL: kernel property `sycl::ext::intel::experimental::grf_size<256>` (or `grf_size_automatic`).
- OpenCL/IGC: build option `-ze-opt-large-register-file`.
### Architecture registers (ARF), from IGA's Xe2 register table
| Register | Size | Purpose |
|---|---|---|
| `null` | n/a | discard destination / zero source |
| `a0` | 1 × 32 B (`a0.0`–`a0.15`, 16-bit each) | address register for indirect register addressing |
| `acc0`–`acc15` | 16 × 64 B | accumulators, used implicitly by `mac`, `mach` and `macl` |
| `mme0`–`mme7` | aliases of `acc8`–`acc15` | math-macro registers for `math.invm` / `math.rsqtm` division and square-root sequences |
| `f0`–`f3` | 4 × 32 bit (`f0.0`, `f0.1` halves) | flag registers: predication masks and conditional-modifier results |
| `ce` | 32 bit | channel enable |
| `msg0`, `msg1` | 12 B, 32 B | message control |
| `sr0` | 16 B | state register |
| `cr0` | 12 B | control register (rounding / float modes, exceptions) |
| `n0` | 12 B | notification register (barrier and host signals) |
| `ip` | 4 B | instruction pointer |
| `tdr0` | 16 B | thread dependency register |
| `tm0` | 20 B | timestamp |
| `fc0`–`fc2` | 64 B, 64 B, 8 B | flow-control state |
| `dbg0` | 8 B | debug |
### Dependency tracking (software scoreboard, SWSB)
Xe2 does not stall on register hazards by itself. Every instruction carries a scoreboard annotation that the compiler sets.
- **In-order ALU pipes:** distance annotations `@n` (any pipe), `F@n` (float), `I@n` (integer), `L@n` (long / 64-bit),
`M@n` (math) and `A@n` (all pipes), with **n = 1 to 7**. IGA calls this mode "four distance pipes with long-pipe reduction".
- **Out-of-order instructions** (`send`, `sendc`, `dpas`) use **32 SBID tokens** (`$0`–`$31`). A consumer waits with
`$n`, `$n.dst` or `$n.src`, and `sync.allrd` / `sync.allwr` wait for all of them.
---
## 4. Complete instruction set (Xe2 EU ISA)
Generated from IGA's Xe2 opcode table (`visa/iga/IGALibrary/Models/bxml/ModelXe2.hpp`). The opcode list matches GED's Xe2 opcode enum exactly.
**Modifier columns:** **P** = predication: `(f0.0)`, `(~f0.0)` inverted, `(f0.0.any)`, `(f0.0.all)`.
**C** = conditional modifier writing a flag: `.z` `.nz` `.g` `.ge` `.l` `.le` `.o` (overflow) `.u` (unordered/NaN).
**S** = `.sat` saturation. **M** = source modifiers `-` (negate), `(abs)` or both; on logic ops `~` is bitwise NOT.
**B** = branch control.
Every instruction can also set an execution size, a channel offset (`M0`/`M8`/`M16`/`M24`), `NoMask` (ignore the execution mask)
and SWSB annotations.
**Type names:** `ub`/`b` = u8/s8, `uw`/`w` = u16/s16, `ud`/`d` = u32/s32, `uq`/`q` = u64/s64, `hf` = FP16, `f` = FP32,
`df` = FP64, `bf` = BF16, `bf8` = FP8 E5M2, `tf32` = TF32, `u4`/`s4`/`u2`/`s2` = packed sub-byte integers (DPAS only).
Immediates can also be the packed vectors `v`/`uv` (8 × 4-bit int) and `vf` (4 × 8-bit float).
Total: **64 instructions** (64 distinct opcodes).
### Move and select
| Mnemonic | Opcode | Description | Operands | Modifiers |
|---|---|---|---|---|
| `mov` | 0x61 | Move | dst, src0 | PCSM |
| `movi` | 0x63 | Move Indexed | dst, src0, src1 | PSM |
| `sel` | 0x62 | Select | dst, src0, src1 | PCSM |
| `csel` | 0x72 | Conditional Select | dst, src0, src1, src2 | CSM |
### Integer and float arithmetic
| Mnemonic | Opcode | Description | Operands | Modifiers |
|---|---|---|---|---|
| `add` | 0x40 | Addition | dst, src0, src1 | PCSM |
| `add3` | 0x52 | Addition Ternary | dst, src0, src1, src2 | PCSM |
| `addc` | 0x4E | Addition with Carry | dst, src0, src1 | PC |
| `subb` | 0x4F | Subtraction with Borrow | dst, src0, src1 | PCS |
| `mul` | 0x41 | Multiply | dst, src0, src1 | PCSM |
| `mac` | 0x48 | Multiply Accumulate | dst, src0, src1 | PCSM |
| `mach` | 0x49 | Multiply Accumulate High | dst, src0, src1 | PM |
| `macl` | 0x53 | Multiply Accumulate Low | dst, src0, src1 | PM |
| `mad` | 0x5B | Multiply Add | dst, src0, src1, src2 | PCSM |
| `madm` | 0x5D | Multiply Add for Macro | dst, src0, src1, src2 | PM |
| `avg` | 0x42 | Average | dst, src0, src1 | PCSM |
### Rounding and conversion
| Mnemonic | Opcode | Description | Operands | Modifiers |
|---|---|---|---|---|
| `frc` | 0x43 | Fraction | dst, src0 | PCM |
| `rndd` | 0x45 | Round Down | dst, src0 | PCSM |
| `rndu` | 0x44 | Round Up | dst, src0 | PCSM |
| `rnde` | 0x46 | Round to Nearest or Even | dst, src0 | PCSM |
| `rndz` | 0x47 | Round to Zero | dst, src0 | PCSM |
| `srnd` | 0x54 | Stochastic Rounding | dst, src0, src1 | - |
### Compare
| Mnemonic | Opcode | Description | Operands | Modifiers |
|---|---|---|---|---|
| `cmp` | 0x70 | Compare | dst, src0, src1 | PCM |
| `cmpn` | 0x71 | Compare NaN | dst, src0, src1 | PCM |
### Logic and shifts
| Mnemonic | Opcode | Description | Operands | Modifiers |
|---|---|---|---|---|
| `and` | 0x65 | Logic And | dst, src0, src1 | PCM |
| `or` | 0x66 | Logic Or | dst, src0, src1 | PCM |
| `xor` | 0x67 | Logic Xor | dst, src0, src1 | PCM |
| `not` | 0x64 | Logic Not | dst, src0 | PCM |
| `bfn` | 0x6B | Boolean Function | dst, src0, src1, src2 | PC |
| `shl` | 0x69 | Shift Left | dst, src0, src1 | PCSM |
| `shr` | 0x68 | Shift Right | dst, src0, src1 | PCSM |
| `asr` | 0x6C | Arithmetic Shift Right | dst, src0, src1 | PCSM |
| `rol` | 0x6F | Rotate Left | dst, src0, src1 | PC |
| `ror` | 0x6E | Rotate Right | dst, src0, src1 | PC |
### Bit manipulation
| Mnemonic | Opcode | Description | Operands | Modifiers |
|---|---|---|---|---|
| `bfe` | 0x78 | Bit Field Extract | dst, src0, src1, src2 | P |
| `bfi1` | 0x79 | Bit Field Insert 1 | dst, src0, src1 | P |
| `bfi2` | 0x7A | Bit Field Insert 2 | dst, src0, src1, src2 | P |
| `bfrev` | 0x77 | Bit Field Reverse | dst, src0 | P |
| `cbit` | 0x4D | Count Bits Set | dst, src0 | P |
| `fbh` | 0x4B | Find First Bit from MSB Side | dst, src0 | P |
| `fbl` | 0x4C | Find First Bit from LSB Side | dst, src0 | P |
| `lzd` | 0x4A | Leading Zero Detection | dst, src0 | PC |
### Extended math
| Mnemonic | Opcode | Description | Operands | Modifiers |
|---|---|---|---|---|
| `math` | 0x38 | Extended Math Function | dst, src0 [, src1] | PSM |
### Dot product and matrix
| Mnemonic | Opcode | Description | Operands | Modifiers |
|---|---|---|---|---|
| `dp4a` | 0x58 | Dot Product 4 Accumulate | dst, src0, src1, src2 | PCS |
| `dpas` | 0x59 | Dot Product Accumulate Systolic | dst, src0, src1, src2 | - |
### Messages (memory, sampler, barrier, ray tracing)
| Mnemonic | Opcode | Description | Operands | Modifiers |
|---|---|---|---|---|
| `send` | 0x31 | Send Message | dst, src0, src1, exdesc, desc | P |
| `sendc` | 0x32 | Send Message Conditional | dst, src0, src1, exdesc, desc | P |
### Control flow
| Mnemonic | Opcode | Description | Operands | Modifiers |
|---|---|---|---|---|
| `if` | 0x22 | If | label0 [, label1] | PB |
| `else` | 0x24 | Else | label0 [, label1] | B |
| `endif` | 0x25 | End If | label | - |
| `while` | 0x27 | While | label | P |
| `break` | 0x28 | Break | label0 [, label1] | P |
| `cont` | 0x29 | Continue | label0 [, label1] | P |
| `goto` | 0x2E | Goto | label0 [, label1] | PB |
| `join` | 0x2F | Join | label | P |
| `jmpi` | 0x20 | Jump Indexed | src0 / label | P |
| `brc` | 0x23 | Branch Converging | label0, label1 / src0 | P |
| `brd` | 0x21 | Branch Diverging | src0 / label | P |
| `call` | 0x2C | Call | dst, src0 / label | P |
| `calla` | 0x2B | Call Absolute | dst, src0 / label | P |
| `ret` | 0x2D | Return | src0 | P |
| `halt` | 0x2A | Halt | label0 [, label1] | P |
### Synchronization and misc
| Mnemonic | Opcode | Description | Operands | Modifiers |
|---|---|---|---|---|
| `sync` | 0x01 | Synchronize | src0 | - |
| `nop` | 0x60 | No Operation | - | - |
| `illegal` | 0x00 | Illegal | - | - |
### Type rules (destination ← source)
Only instructions that IGA type-checks are listed. All others take no typed operands or accept any type.
- `mov`: ub/b/uw/w/ud/d ← ub/b/uw/w/ud/d; f ← ub/b/uw/w/ud/d; ub/b/uw/w/ud/d ← f; f ← f; tf32 ← f; hf ← ub/b/uw/w/ud/d; ub/b/uw/w/ud/d ← hf; hf ← hf; hf ← f; f ← hf; bf ← f; bf8 ← hf; hf ← bf8; df/f/uq/q/uw/w/ud/d ← df; df ← f/uq/q/uw/w/ud/d; uq/q/f/uw/w/ud/d ← uq/q; uq/q ← f/uw/w/ud/d
- `movi`: b ← b; ub ← ub; w ← w; uw ← uw; d ← d; ud ← ud
- `sel`: ub/b/uw/w/ud/d ← ub/b/uw/w/ud/d; f ← f; hf ← hf; bf/f ← bf/f
- `csel`: f ← f; hf ← hf; ud/d ← ud/d; uw/w ← uw/w
- `add`: ub/b/uw/w/ud/d ← ub/b/uw/w/ud/d; f ← f; hf ← hf; bf/f ← bf/f; df ← df; uq/q ← uw/w/ud/d/uq/q; uw/w/ud/d ← uq/q
- `add3`: uw/w/ud/d ← uw/w/ud/d
- `addc`: ud ← ud
- `subb`: ud ← ud
- `mul`: uw/w ← uw/w; ud/d ← uw/w; ud/d ← uw/w/ud/d; f ← f; hf ← hf; bf/f ← bf/f
- `mac`: uw/w/ud/d ← ub/b/uw/w; f ← f; hf ← hf; f ← bf/f; df ← df
- `mach`: d ← d; ud ← ud
- `macl`: d ← d; ud ← ud
- `mad`: f ← f; hf ← hf; bf/f ← bf/f; uw/w/ud/d ← uw/w/ud/d; df ← df
- `madm`: f ← f; df ← df
- `avg`: ub/b/uw/w/ud/d ← ub/b/uw/w/ud/d
- `frc`: f ← f
- `rndd`: f ← f
- `rndu`: f ← f
- `rnde`: f ← f
- `rndz`: f ← f
- `srnd`: hf ← f; bf8 ← hf
- `cmp`: ub/b/uw/w/ud/d ← ub/b/uw/w/ud/d; f ← f; hf ← hf; bf/f ← bf/f; df ← df
- `cmpn`: ub/b/uw/w/ud/d ← ub/b/uw/w/ud/d; f ← f; hf ← hf; df ← df
- `and`: ub/b/uw/w/ud/d ← ub/b/uw/w/ud/d
- `or`: ub/b/uw/w/ud/d ← ub/b/uw/w/ud/d
- `xor`: ub/b/uw/w/ud/d ← ub/b/uw/w/ud/d
- `not`: ub/b/uw/w/ud/d ← ub/b/uw/w/ud/d
- `bfn`: ud/uw ← ud/uw
- `shl`: ub/b/uw/w/ud/d ← ub/b/uw/w/ud/d; uq/q ← uw/w/ud/d/uq/q; uw/w/ud/d ← uq/q
- `shr`: ub/uw/ud ← ub/b/uw/w/ud/d; uq ← uw/w/ud/d/uq/q; uw/ud ← uq/q
- `asr`: ub/b/uw/w/ud/d ← ub/b/uw/w/ud/d; uq/q ← uw/w/ud/d/uq/q; uw/w/ud/d ← uq/q
- `rol`: uw/ud ← uw/ud; uq ← uq
- `ror`: uw/ud ← uw/ud; uq ← uq
- `bfe`: ud ← ud; d ← d
- `bfi1`: ud ← ud; d ← d
- `bfi2`: ud ← ud; d ← d
- `bfrev`: ud/d ← ud/d
- `cbit`: ud ← ud/uw/ub
- `fbh`: ud ← ud/d
- `fbl`: ud ← ud
- `lzd`: ud ← ud
- `math`: f ← f; hf ← hf; df ← df
- `dp4a`: ud/d ← ud/d
- `dpas`: ud/d ← ud/d/ub/b/u4/s4/u2/s2; f/bf ← f/bf; f/hf ← f/hf; f ← f/tf32
- `sync`: src ub/b/uw/w/ud/d/uq/q/hf/f/df
### Changes vs. Xe-HPG (Alchemist, Arc A-series)
- New in Xe2: `macl`, `srnd`
- Removed in Xe2: `dpasw`
- New data types on existing instructions: `bfrev` (+d), `dpas` (+tf32), `mov` (+bf8/tf32), `movi` (+b/ub/uw/w), `rol` (+uq), `ror` (+uq), `shr` (+b/d/q/w)
### `math` functions on Xe2
From GED's Xe2 encoding table, which lists exactly these nine function codes:
| Function | Code | Sources | Meaning |
|---|---|---|---|
| `math.inv` | 1 | 1 | 1/x |
| `math.log` | 2 | 1 | log₂(x) |
| `math.exp` | 3 | 1 | 2ˣ |
| `math.sqt` | 4 | 1 | √x |
| `math.rsqt` | 5 | 1 | 1/√x |
| `math.sin` | 6 | 1 | sin(x) |
| `math.cos` | 7 | 1 | cos(x) |
| `math.invm` | 14 | 2 | IEEE-exact division macro step (with `madm`, `mme` registers, early-out flag `.eo`) |
| `math.rsqtm` | 15 | 1 | IEEE-exact square-root macro step (with `madm`, `mme` registers, early-out flag `.eo`) |
Types: `f`, `hf` and `df`.
**Not hardware instructions on Xe2:** `fdiv`, `pow` and integer divide/remainder (dropped after Gen11/Xe-LP), and `tanh`/`sigm`
(Xe3P only). Compilers build them from the functions above, for example a/b = a × inv(b), xʸ = exp(y × log(x)), and integer
division in software.
### `sync` functions on Xe2
| Function | Code | Purpose |
|---|---|---|
| `sync.nop` | 0 | carries an SWSB annotation only |
| `sync.allrd` | 2 | wait until all outstanding SBID reads are done |
| `sync.allwr` | 3 | wait until all outstanding SBID writes are done |
| `sync.flush` | 12 | new in Xe2; semantics not publicly documented |
| `sync.fence` | 13 | fence wait |
| `sync.bar` | 14 | wait for the work-group barrier |
| `sync.host` | 15 | wait for a host notification |
`bfn` takes an 8-bit truth table as a function code (`bfn.0x00` to `bfn.0xFF`), so it can compute any boolean function of three inputs.
---
## 5. Memory and other messages (`send` / `sendc`)
Everything outside the ALU, including memory, barriers, sampling and ray tracing, is a message sent to a **shared function (SFID)**.
### Shared functions on Xe2
| Code | SFID | Used for |
|---|---|---|
| 0x0 | `null` | null message |
| 0x1 | `ugml` | untyped global memory, low-bandwidth path |
| 0x2 | `smpl` | sampler |
| 0x3 | `gtwy` | message gateway (work-group barriers, timestamps) |
| 0x4 | `dc2` | legacy data port |
| 0x5 | `rc` | render cache (render-target writes) |
| 0x6 | `urb` | unified return buffer (graphics pipeline) |
| 0x7 | `btd` | bindless thread dispatcher (spawns ray-tracing shaders) |
| 0x8 | `rta` | ray-tracing accelerator (`trace_ray`) |
| 0x9 | `dcro` | constant / read-only data port |
| 0xA | `dc0` | legacy data port |
| 0xB | `pixi` | pixel interpolator |
| 0xC | `dc1` | legacy data port |
| 0xD | **`tgm`** | typed global memory: images, typed buffers (LSC) |
| 0xE | **`slm`** | shared local memory (LSC) |
| 0xF | **`ugm`** | untyped global memory: buffers, USM pointers (LSC) |
Compute kernels mostly use `ugm`, `slm`, `tgm` and `gtwy`.
### LSC (load/store cache) operations valid on Xe2 (from GED)
| Op | Code | Notes |
|---|---|---|
| `load` | 0x00 | gather load, one address per lane (SIMT), or a transposed block (SIMD) |
| `load_quad` | 0x02 | per-lane load with an X/Y/Z/W component mask |
| `load_block2d` | 0x03 | **2D block load** into GRF with optional transpose / VNNI transform. Feeds DPAS. Not on Xe-HPG. |
| `store` | 0x04 | scatter store |
| `store_quad` | 0x06 | component-masked store |
| `store_block2d` | 0x07 | 2D block store. Not on Xe-HPG. |
| `atomic_iinc` / `atomic_idec` | 0x08 / 0x09 | integer increment / decrement |
| `atomic_store` | 0x0B | atomic store |
| `atomic_iadd` / `atomic_isub` | 0x0C / 0x0D | integer add / subtract |
| `atomic_smin` / `atomic_smax` | 0x0E / 0x0F | signed min / max |
| `atomic_umin` / `atomic_umax` | 0x10 / 0x11 | unsigned min / max |
| `atomic_icas` | 0x12 | integer compare-and-swap |
| `atomic_fadd` / `atomic_fsub` | 0x13 / 0x14 | float add / subtract |
| `atomic_fmin` / `atomic_fmax` | 0x15 / 0x16 | float min / max |
| `atomic_fcas` | 0x17 | float compare-and-swap |
| `atomic_and` / `atomic_or` / `atomic_xor` | 0x18 / 0x19 / 0x1A | bitwise atomics |
| `load_status` | 0x1B | new in Xe2 |
| `read_state` | 0x1E | read surface state, new in Xe2 |
| `fence` | 0x1F | memory fence: scope threadgroup / local / tile / GPU / system; flush evict / invalidate / discard / clean |
| `atomic_acadd` / `atomic_acsub` / `atomic_acstore` | 0x28 / 0x29 / 0x2A | append-counter atomics, new in Xe2 |
`atomic_load` and `store_uncompressed` exist on Xe-HPG/Xe-HPC but **not on Xe2**.
| Message field | Xe2 values |
|---|---|
| Data size | `d8`, `d16`, `d32`, `d64`, `d8u32`, `d16u32`. On Xe2 the `u32` forms zero-extend into 32-bit lanes. |
| Vector size | 1, 2, 3, 4, 8, 16, 32, 64 elements |
| Address | A32 or A64. Surface model: flat, BTI (binding table), SS (surface state) or BSS (bindless surface state). |
| Load cache control | default, `L1UC_L3UC`, `L1UC_L3C`, `L1UC_L3CC`, `L1C_L3UC`, `L1C_L3C`, `L1C_L3CC`, `L1S_L3UC`, `L1S_L3C`, `L1IAR_L3IAR` |
| Store cache control | default, `L1UC_L3UC`, `L1UC_L3WB`, `L1WT_L3UC`, `L1WT_L3WB`, `L1S_L3UC`, `L1S_L3WB`, `L1WB_L3WB` |
Cache-control abbreviations: UC uncached, C cached, CC constant-cached, S streaming, IAR invalidate-after-read,
WT write-through, WB write-back.
Xe2 changes to LSC compared with earlier GPUs:
- The cache-control field grew to 4 bits, which added the load combinations `L1UC_L3CC`, `L1C_L3CC` and `L1IAR_L3IAR`.
- An immediate address offset can be carried in the extended descriptor.
- The `d8u32` / `d16u32` data sizes now zero-extend.
**2D block constraints:** the surface base must be 64-byte aligned, the pitch a multiple of 16 bytes and the width a multiple of 4 bytes.
Exact min/max limits are in `cl_intel_subgroup_2d_block_io`.
---
## 6. XMX / DPAS matrix instruction
`dpas.<sdepth>x<rcount> dst, src0(C), src1(B), src2(A)` computes **D = C + A × B**, executed by one sub-group of 16 lanes.
`dpas` takes no predication, conditional modifier or saturation.
| Parameter | Xe2 value |
|---|---|
| Execution size (= **N**) | **16** |
| Systolic depth | **8** |
| Repeat count (= **M**) | **1 to 8** |
| **K** | 8 × (32 / element bits): **16** for FP16/BF16, **32** for INT8, **64** for INT4, **128** for INT2, **8** for TF32 |
### Operand types (IGA's Xe2 type rules)
| A / B inputs | Accumulator C / result D |
|---|---|
| `hf` (FP16) | `f` or `hf` |
| `bf` (BF16) | `f` or `bf` |
| `tf32` | `f` |
| `ub`/`b` (u8/s8), `u4`/`s4`, `u2`/`s2`, in any signedness mix | `ud`/`d` (INT32) |
- **API exposure:** `joint_matrix`, OpenCL and Vulkan cover FP16, BF16, TF32 and INT8.
INT4 and INT2 are reachable through SYCL ESIMD `xmx::dpas` (`dpas_argument_type::u4/s4/u2/s2`).
- The DPAS precision field also has encodings for **BF8 (FP8) and 1-bit** inputs. IGA does not accept them as DPAS inputs on Xe2,
and Intel's ESIMD header marks 1-bit "reserved/unsupported". Treat them as unsupported.
- `dpasw` (the "wide" DPAS variant on Xe-HPG/Alchemist) **no longer exists** on Xe2.
- No structured (2:4) sparsity mode is documented.
### Tile shapes exposed by SYCL `joint_matrix`
| A | B | C/D accumulate | M | N | K |
|---|---|---|---|---|---|
| FP16 | FP16 | FP32 or FP16 | 1 to 8 | 16 | 16 |
| BF16 | BF16 | FP32 | 1 to 8 | 16 | 16 |
| TF32 | TF32 | FP32 | 1 to 8 | 16 | 8 |
| INT8 / UINT8 (any signedness mix) | INT8 / UINT8 | INT32 | 1 to 8 | 16 | 32 |
- `joint_matrix` also exposes composite shapes built from multiple DPAS calls. For FP16 and BF16 these include
16×16×16, 32×64×16, 32×64×32, 1×64×16 and 1×64×32. Prefer M=8, N=16 per DPAS when hand-tiling.
- **B operand layout:** VNNI-packed. Pairs of FP16/BF16 values, or quads of INT8 values, are packed along K into 32-bit dwords.
The 2D block load can perform this transform.
---
## 7. Data types
| Unit | Types |
|---|---|
| Vector Engine | FP64 (`df`, native, reduced rate), FP32, FP16, BF16 (`add`, `mul`, `mad`, `sel`, `cmp` accept bf/f mixes), INT64, INT32, INT16, INT8 |
| FP8 | **E5M2 only (`bf8`)**, as a conversion format: `mov` hf↔bf8 and `srnd` hf→bf8 with stochastic rounding |
| XMX (DPAS) | FP16, BF16, TF32, INT8/UINT8, INT4/UINT4, INT2/UINT2 |
- **No FP8 E4M3 (`hf8`) on Xe2.** Intel's encoder lists it from Xe3 onward. E4M3 is the format most FP8 LLM checkpoints use,
so those weights need software conversion on these cards. There is also no FP4 (`e2m1`, Xe3P only).
- `srnd` (stochastic rounding F32→F16 and F16→BF8) is new in Xe2.
- FP64 is native on Xe2-HPG, unlike Alchemist where it was emulated. Intel does not publish the FP64 rate.
Treat it as a consumer-class rate, far below FP32, and not an HPC FP64 part.
---
## 8. API-level exposure
| API | How the ISA features surface |
|---|---|
| **SYCL / oneAPI (DPC++)** | `sycl::ext::oneapi::experimental::matrix::joint_matrix` (→ DPAS); ESIMD `xmx::dpas` (incl. INT4/INT2); `reqd_sub_group_size(16\|32)`; Level Zero runtime |
| **OpenCL 3.0** | `cl_intel_subgroup_matrix_multiply_accumulate` (DPAS), `cl_intel_subgroup_2d_block_io`, `cl_intel_subgroups` (+ `_char`, `_short`, `_long`), `cl_intel_required_subgroup_size`, `cl_khr_fp64`, `cl_khr_fp16`, `cl_khr_integer_dot_product` |
| **SPIR-V** | `SPV_INTEL_subgroup_matrix_multiply_accumulate`, `SPV_INTEL_2d_block_io`, `SPV_INTEL_subgroups`, `SPV_KHR_cooperative_matrix` |
| **Vulkan 1.3** (Windows driver; Mesa ANV on Linux) | `VK_KHR_cooperative_matrix` (→ DPAS, where the driver exposes it), `VK_EXT_subgroup_size_control` (16/32), `VK_KHR_shader_integer_dot_product`, `VK_KHR_shader_float16_int8`, ray tracing (`VK_KHR_ray_tracing_pipeline`, `VK_KHR_ray_query`) |
| **DirectX 12 Ultimate** | SM 6.x wave intrinsics (wave size 16/32), DXR 1.1, mesh shaders, VRS, sampler feedback |
| **OpenGL 4.6** | |
Check exact extension lists on a given driver with `clinfo`, `vulkaninfo`, or `sycl-ls --verbose`.
---
## 9. Inspecting generated Xe2 assembly
```bash
# IGC (OpenCL / SYCL / Level Zero): dump vISA + native asm to /tmp/IntelIGC (Linux)
IGC_ShaderDumpEnable=1 ./app
```
```bash
# Mesa ANV / Iris (Vulkan / GL): print compute shader assembly
INTEL_DEBUG=cs vulkan_app
```
```bash
# Disassemble an AOT binary
ocloc disasm -file kernel_bmg.bin -device 20.1.4
```
```bash
# IGA command-line assembler/disassembler (built from the IGC repo): disassemble raw Xe2 kernel bits
iga64 -p=xe2 -d kernel.krn
```