Commit f3d7725a7 for llama.cpp

commit f3d7725a7727456c20fbe66b23602e8aef88650f
Author: zhaoyshine <30611065+zhaoyshine@users.noreply.github.com>
Date:   Thu Nov 12 14:50:55 2026 +0800

    sycl : use cached device-id in set_main_device (#32013)

    ggml_sycl_set_main_device() runs at the start of every graph compute. Its
    early-return check called dpct::get_current_device_id(), which locks the
    device manager mutex and looks up the thread-to-device map. Use the
    thread-local cached id that the rest of the backend already uses.

    Assisted-by: Claude Code

    Co-authored-by: zhaoyshine <zhaoyshine@users.noreply.github.com>

diff --git a/ggml/src/ggml-sycl/ggml-sycl.cpp b/ggml/src/ggml-sycl/ggml-sycl.cpp
index f634a7f1c..cb9fa4742 100644
--- a/ggml/src/ggml-sycl/ggml-sycl.cpp
+++ b/ggml/src/ggml-sycl/ggml-sycl.cpp
@@ -6112,7 +6112,7 @@ static void ggml_sycl_argmax(ggml_backend_sycl_context & ctx, ggml_tensor * dst)


 static void ggml_sycl_set_main_device(const int main_device) try {
-    if (dpct::get_current_device_id() == static_cast<unsigned int> (main_device)) {
+    if (get_current_device_id() == main_device) {
         return;
     }
     check_allow_gpu_index(main_device);