CYBER WATCH / EQUINOXE INTELLIGENCE

← All articles

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

llama.cpp Releases · 2026-11-12 16:01:09

The function `ggml_sycl_set_main_device()` runs at the start of every graph compute. Its early‑return check uses `dpct::get_current_device_id()`, which locks the device manager mutex and looks up the thread‑to‑device map. The patch replaces this with the thread‑local cached device ID already used by the rest of the backend.

Read original source ↗