]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
[SYCL]: Remove per-allocation Level Zero runtime checks (#23399)
authorAlexey Kopytko <redacted>
Mon, 15 Jun 2026 06:58:42 +0000 (15:58 +0900)
committerGitHub <redacted>
Mon, 15 Jun 2026 06:58:42 +0000 (09:58 +0300)
commitc035ff49021fe3050fea1612e5ef4bf290539823
tree84496b2200bf375b6cee628a7ea955151954e019
parent272088b9f2136fee65d37509625cb56c84244a22
[SYCL]: Remove per-allocation Level Zero runtime checks (#23399)

* [SYCL] Centralize Level Zero detection in ggml_sycl_init

* use the same wording

* get back the warning

* [SYCL] Remove per-allocation getenv() for GGML_SYCL_ENABLE_LEVEL_ZERO

* bring back the comment

* move it up to make sure devices call the shots

* move the env detection early

* replace g_ggml_sycl_enable_level_zero with a direct call to .ext_oneapi_level_zero

* update the comment

* switch back to g_ggml_sycl_enable_level_zero with a sentinel

* remove the check

* Reduce the diff

* reword, move lower

* move things aroudn

* remove forward declaration if favor of a full replace

* pre-cache results of zeDeviceGetProperties

* put ggml_sycl_get_env back

* replace get_sycl_env with ggml_sycl_get_env

* add whitespace back

* Apply suggestion from @sanmai
ggml/src/ggml-sycl/common.cpp
ggml/src/ggml-sycl/common.hpp
ggml/src/ggml-sycl/ggml-sycl.cpp