From a7e2d21f598ce218f0a8073bfe17be5df1f46fd1 Mon Sep 17 00:00:00 2001 From: Inforithmics Date: Thu, 25 Sep 2025 06:33:15 +0200 Subject: [PATCH] vk_check_flash_attention is not needed (coompat2 coopmapt and scalar implementation exist) --- discover/gpu_info_vulkan.c | 28 ---------------------------- discover/gpu_info_vulkan.h | 1 - 2 files changed, 29 deletions(-) diff --git a/discover/gpu_info_vulkan.c b/discover/gpu_info_vulkan.c index 7179ec9a3..0929fdee5 100644 --- a/discover/gpu_info_vulkan.c +++ b/discover/gpu_info_vulkan.c @@ -150,34 +150,6 @@ int vk_device_is_supported(vk_handle_t rh, int i) { return supported; } -int vk_check_flash_attention(vk_handle_t rh, int i) { - VkInstance instance = rh.vk; - uint32_t deviceCount = rh.num_devices; - - VkPhysicalDevice* devices = malloc(deviceCount * sizeof(VkPhysicalDevice)); - if (devices == NULL) { - return 0; - } - - VkResult result = (*rh.vkEnumeratePhysicalDevices)(instance, &deviceCount, devices); - if (result != VK_SUCCESS) { - free(devices); - return 0; - } - - VkPhysicalDeviceProperties properties = {}; - (*rh.vkGetPhysicalDeviceProperties)(devices[i], &properties); - - int supports_nv_coopmat2 = is_extension_supported(&rh, devices[i], VK_NV_COOPERATIVE_MATRIX_2_EXTENSION_NAME); - if (!supports_nv_coopmat2) { - free(devices); - return 1; - } - - free(devices); - return 0; -} - void vk_check_vram(vk_handle_t rh, int i, mem_info_t *resp) { VkInstance instance = rh.vk; uint32_t deviceCount = rh.num_devices; diff --git a/discover/gpu_info_vulkan.h b/discover/gpu_info_vulkan.h index 26d00d601..3cd8b0b39 100644 --- a/discover/gpu_info_vulkan.h +++ b/discover/gpu_info_vulkan.h @@ -473,7 +473,6 @@ typedef struct vk_init_resp void vk_init(char* vk_lib_path, vk_init_resp_t *resp); void vk_check_vram(vk_handle_t rh, int i, mem_info_t *resp); -int vk_check_flash_attention(vk_handle_t rh, int i); int vk_device_is_supported(vk_handle_t rh, int i); void vk_release(vk_handle_t rh);