Skip to content

SYCL: Refactor GGML_SYCL_ENABLE_MKL_FA to global var - #26863

Merged
Titaniumtown merged 1 commit into
ggml-org:masterfrom
johnkarlhill:sycl-mkl-enable-refactor
Sep 4, 2026
Merged

SYCL: Refactor GGML_SYCL_ENABLE_MKL_FA to global var#26863
Titaniumtown merged 1 commit into
ggml-org:masterfrom
johnkarlhill:sycl-mkl-enable-refactor

Conversation

@johnkarlhill

Copy link
Copy Markdown
Contributor

Overview

Refactor GGML_SYCL_ENABLE_MKL_FA env var read once at startup, not per-call.

Additional information

Make a consistent pattern with g_ggml_sycl_fa_decode_kernel and g_ggml_sycl_fa_onednn.
Same default (1=enabled), same env var name, same semantics.
Just moved from static local to global.

Requirements

PR #26689 (same branch base).... responding to arthw review point 4.

  • I have read and agree with the contributing guidelines
  • AI usage disclosure: YES. Used to locate all instances. I updated the code. Used it to validate my work. Then I tested the changes.

@github-actions github-actions Bot added documentation Improvements or additions to documentation ggml changes relating to the ggml tensor library for machine learning SYCL https://en.wikipedia.org/wiki/SYCL - GPU programming language labels Aug 10, 2026
@johnkarlhill
johnkarlhill marked this pull request as ready for review August 10, 2026 22:12
@johnkarlhill
johnkarlhill requested a review from a team as a code owner August 10, 2026 22:12

@NeoZhangJianyu NeoZhangJianyu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's good job!

Thank you!

@johnkarlhill
johnkarlhill force-pushed the sycl-mkl-enable-refactor branch from 55bb5c2 to 8e43f86 Compare August 11, 2026 17:20
@arthw arthw added the merge ready A maintainer can use this label to indicate that they consider the changes final and ready to merge. label Aug 13, 2026
@johnkarlhill
johnkarlhill force-pushed the sycl-mkl-enable-refactor branch from 8e43f86 to c8df63b Compare August 15, 2026 19:33
@johnkarlhill

Copy link
Copy Markdown
Contributor Author

It's good job!

Thank you!

I checked this morning and this needed to be rebased onto the updated #26689. The old branch still carried the GGML_SYCL_FA_DECODE_KERNEL commits that were removed from #26689, so I re-applied just the mkl refactor as a single commit on top of the new head. No other changes.

@NeoZhangJianyu

Copy link
Copy Markdown
Contributor

@johnkarlhill
This PR include the code of #26689.
Need to review & merge #26689?
It's duplicated of this PR.

@johnkarlhill

Copy link
Copy Markdown
Contributor Author

They're stacked, not duplicated. #26689 is the base. #26863 adds one commit on top (the mkl refactor). #26689 needs to go first then #26863 will auto-rebase to just its own commit after.

@ggerganov ggerganov removed the merge ready A maintainer can use this label to indicate that they consider the changes final and ready to merge. label Aug 21, 2026
@arthw

arthw commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Sorry, I forgot to continue reviewing this PR.

@arthw

arthw commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

#26689 is merged.
So we could continue handling this PR.

@johnkarlhill
johnkarlhill force-pushed the sycl-mkl-enable-refactor branch from c8df63b to 29a32b1 Compare September 2, 2026 12:40
@johnkarlhill

Copy link
Copy Markdown
Contributor Author

#26689 is merged. So we could continue handling this PR.

Just rebased so this PR is as clean as a whistle :-)

@arthw arthw added the merge ready A maintainer can use this label to indicate that they consider the changes final and ready to merge. label Sep 3, 2026
@Titaniumtown
Titaniumtown merged commit f9f09f0 into ggml-org:master Sep 4, 2026
26 of 30 checks passed
@Titaniumtown

Copy link
Copy Markdown
Contributor

Thank you @johnkarlhill for the contribution!

fewtarius pushed a commit to fewtarius/CachyLLama that referenced this pull request Sep 5, 2026
x1250 pushed a commit to x1250/llama.cpp that referenced this pull request Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation ggml changes relating to the ggml tensor library for machine learning merge ready A maintainer can use this label to indicate that they consider the changes final and ready to merge. SYCL https://en.wikipedia.org/wiki/SYCL - GPU programming language

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants