diff --git a/ggml-kompute.cpp b/ggml-kompute.cpp index fa7baf7e8..1704bc9da 100644 --- a/ggml-kompute.cpp +++ b/ggml-kompute.cpp @@ -340,8 +340,9 @@ ggml_vk_device ggml_vk_current_device() { if (!komputeManager()->hasDevice()) return ggml_vk_device(); - auto devices = ggml_vk_available_devices_internal(0); - ggml_vk_filterByName(devices, komputeManager()->physicalDevice()->getProperties().deviceName); + auto devices = ggml_vk_available_devices(0); + ggml_vk_filterByName(devices, komputeManager()->physicalDevice()->getProperties().deviceName.data()); + GGML_ASSERT(!devices.empty()); return devices.front(); }