[PR #3934] [CLOSED] [Engine] sycl: build iq_avx512.cpp with -mavx512vpopcntdq and -mbmi2, as the top-level build does #4840

Closed
opened 2026-11-07 15:39:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/3934
Author: @deriknel
Created: 10/24/2026
Status: ❌ Closed

Base: main ← Head: pr/sycl-cmake-bmi2


📝 Commits (1)

  • 616dd21 sycl: build iq_avx512.cpp with -mavx512vpopcntdq and -mbmi2, as the top-level build does

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 sycl/CMakeLists.txt (+1 -1)

📄 Description

Problem and result

Since v0.2.4 the SYCL engine does not build. The CPU rows added in 1747c8e5 use _pdep_u64 / _pext_u32 (BMI2) and VPOPCNTDQ in src/kernels/cpu/iq_avx512.cpp. The top-level CMakeLists.txt added -mavx512vpopcntdq;-mbmi2 for that file; sycl/CMakeLists.txt compiles the same file and kept the old flag list, so icpx stops with:

src/kernels/cpu/iq_avx512.cpp:478:37: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2'

This change gives the SYCL build the same flags. With it, v0.2.4 builds for SYCL again.

none. The Intel engine package in v0.2.4 is still the 0.1.48 file from v0.2.3, which is probably why the break went unnoticed.

Approach

sycl/CMakeLists.txt, one line: the COMPILE_OPTIONS of iq_avx512.cpp and nvfp4_avx512.cpp now match the top-level list (-mavx512vpopcntdq;-mbmi2 added). The flags only let the file compile; which rows run is still decided at run time by the CPU probe.

Validation

Setup: v0.2.4 (96ca4383) built for SYCL in a container (AOT bmg-g31, oneAPI 2026.1, Compute Runtime 26.35.39758.10, IGC 2.41.5) with this change and our other local SYCL patches; host CachyOS, kernel 7.2.11, xe, i9-14900KF, 2x Intel Arc Pro B70 32 GB.

Passed:

  • Without the change the build stops at iq_avx512.cpp with the error above; with it the full build completes.
  • ctest on both cards: 41 tests, the one failure is ple_parity (needs a Q2_0 model file we do not have), the same as before this change.
  • The engine serves Swift 1.5 Flash-Next IQ3_S on a two-card layer split as before: bench, a 148K-token prompt, images, and greedy text identical on 5 prompts to our v0.2.2 build.

Failed:

  • none observed.

Not run:

  • The AVX-512 CPU rows themselves: our CPU has no AVX-512.

Limits

Build-only change. On a CPU without AVX-512 (our i9-14900KF) these rows never run, so the run-time check above covers the build and the GPU engine, not the AVX-512 rows themselves.

We investigated (myself and Claude Opus 5.5 in Claude Code) and I reviewed the findings and ran every test on my two Arc Pro B70s on my CachyOS machine.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/3934 **Author:** [@deriknel](https://github.com/deriknel) **Created:** 10/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pr/sycl-cmake-bmi2` --- ### 📝 Commits (1) - [`616dd21`](https://github.com/Niko1221/Strata/commit/616dd21e341d418a85865388cce151b0231e5179) sycl: build iq_avx512.cpp with -mavx512vpopcntdq and -mbmi2, as the top-level build does ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `sycl/CMakeLists.txt` (+1 -1) </details> ### 📄 Description ## Problem and result Since v0.2.4 the SYCL engine does not build. The CPU rows added in 1747c8e5 use `_pdep_u64` / `_pext_u32` (BMI2) and VPOPCNTDQ in `src/kernels/cpu/iq_avx512.cpp`. The top-level `CMakeLists.txt` added `-mavx512vpopcntdq;-mbmi2` for that file; `sycl/CMakeLists.txt` compiles the same file and kept the old flag list, so icpx stops with: ``` src/kernels/cpu/iq_avx512.cpp:478:37: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2' ``` This change gives the SYCL build the same flags. With it, v0.2.4 builds for SYCL again. ## Related discussion none. The Intel engine package in v0.2.4 is still the 0.1.48 file from v0.2.3, which is probably why the break went unnoticed. ## Approach `sycl/CMakeLists.txt`, one line: the `COMPILE_OPTIONS` of `iq_avx512.cpp` and `nvfp4_avx512.cpp` now match the top-level list (`-mavx512vpopcntdq;-mbmi2` added). The flags only let the file compile; which rows run is still decided at run time by the CPU probe. ## Validation Setup: v0.2.4 (96ca4383) built for SYCL in a container (AOT `bmg-g31`, oneAPI 2026.1, Compute Runtime 26.35.39758.10, IGC 2.41.5) with this change and our other local SYCL patches; host CachyOS, kernel 7.2.11, `xe`, i9-14900KF, 2x Intel Arc Pro B70 32 GB. **Passed:** - Without the change the build stops at `iq_avx512.cpp` with the error above; with it the full build completes. - `ctest` on both cards: 41 tests, the one failure is `ple_parity` (needs a Q2_0 model file we do not have), the same as before this change. - The engine serves Swift 1.5 Flash-Next IQ3_S on a two-card layer split as before: bench, a 148K-token prompt, images, and greedy text identical on 5 prompts to our v0.2.2 build. **Failed:** - none observed. **Not run:** - The AVX-512 CPU rows themselves: our CPU has no AVX-512. ## Limits Build-only change. On a CPU without AVX-512 (our i9-14900KF) these rows never run, so the run-time check above covers the build and the GPU engine, not the AVX-512 rows themselves. We investigated (myself and Claude Opus 5.5 in Claude Code) and I reviewed the findings and ran every test on my two Arc Pro B70s on my CachyOS machine. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:39:25 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4840
No description provided.