]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
vulkan: ifdef eMesaHoneykrisp (build fix) (#24479)
authorJeff Bolz <redacted>
Thu, 11 Jun 2026 18:22:17 +0000 (13:22 -0500)
committerGitHub <redacted>
Thu, 11 Jun 2026 18:22:17 +0000 (13:22 -0500)
Fixes build/CI after #24306.

ggml/src/ggml-vulkan/ggml-vulkan.cpp

index 5f372404521b2535af1b9fb837fcd1fae8ec8f9c..1b1150e773107f05abb0c09e30990c295be42609 100644 (file)
@@ -6202,6 +6202,7 @@ static vk_device ggml_vk_get_device(size_t idx) {
                 break;
             }
 
+#if VK_HEADER_VERSION >= 287
             // Honeykrisp driver for Asahi Linux doesn't report VK_VENDOR_ID_APPLE.
             // Check for Honeykrisp driver and force same configuration as the VK_VENDOR_ID_APPLE case.
             if (device->driver_id == vk::DriverId::eMesaHoneykrisp) {
@@ -6212,6 +6213,7 @@ static vk_device ggml_vk_get_device(size_t idx) {
                 device->mul_mat_id_m[i] = true;
                 device->mul_mat_id_s[i] = false;
             }
+#endif
 
             device->mul_mat_l_int[i]    = device->mul_mat_l[i];
             device->mul_mat_m_int[i]    = device->mul_mat_m[i];