Skip to content

Conversation

@sajonoso
Copy link

@sajonoso sajonoso commented Feb 1, 2026

This PR fixes a bug introduced in #17780 due to an issue in the oneAPI toolkit.

The original PR automatically enabled bfloat16 support by simply checking for the existence of the include file:
sycl/ext/oneapi/bfloat16.hpp

However, bfloat16 is only supported on server class CPUs and this include file does not seem to correctly fallback to software emulation. (Tested with oneAPI 2025.3.1 and also in 2025.3.0 on a Meteor Lake CPU)

Have tried to avoid making this PR by undefining __SYCL_USE_NATIVE_BFLOAT16__ during compilation to overcome this issue, but this also did not work - still resulting in segmentation fault.

This PR simply turns off the bfloat16 option by default for the majority of users with consumer class Intel CPUs while still allowing those with server class CPUs to enable it by compiling with the -DGGML_SYCL_HAS_BF16 option

@github-actions github-actions bot added ggml changes relating to the ggml tensor library for machine learning SYCL https://en.wikipedia.org/wiki/SYCL - GPU programming language labels Feb 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ggml changes relating to the ggml tensor library for machine learning SYCL https://en.wikipedia.org/wiki/SYCL - GPU programming language

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant