vulkan: enable flash attention (#12937)

Also adjusts the vulkan windows build pattern to match recent changes in other backends
so incremental builds are faster.
This commit is contained in:
Daniel Hiltgen
2025-11-04 10:31:22 -08:00
committed by GitHub
parent ef549d513c
commit a4770107a6
2 changed files with 5 additions and 4 deletions

View File

@@ -432,7 +432,8 @@ func FlashAttentionSupported(l []DeviceInfo) bool {
supportsFA := gpu.Library == "cpu" ||
gpu.Name == "Metal" || gpu.Library == "Metal" ||
(gpu.Library == "CUDA" && gpu.DriverMajor >= 7 && !(gpu.ComputeMajor == 7 && gpu.ComputeMinor == 2)) ||
gpu.Library == "ROCm"
gpu.Library == "ROCm" ||
gpu.Library == "Vulkan"
if !supportsFA {
return false