diff --git a/taichi/backends/vulkan/vulkan_device_creator.cpp b/taichi/backends/vulkan/vulkan_device_creator.cpp index c4285a5cc71e2..4f333f972517f 100644 --- a/taichi/backends/vulkan/vulkan_device_creator.cpp +++ b/taichi/backends/vulkan/vulkan_device_creator.cpp @@ -179,7 +179,7 @@ size_t get_device_score(VkPhysicalDevice device, VkSurfaceKHR surface) { score += size_t(properties.deviceType == VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU) * 1000; - score += VK_API_VERSION_MINOR(properties.driverVersion) * 100; + score += VK_API_VERSION_MINOR(properties.apiVersion) * 100; return score; }