Commit a0290ff
feat(windows): add Vulkan GPU detection for Intel Arc and other non-CUDA GPUs
CanUseGPU on Windows only checked NVIDIA CUDA (amd64) and Qualcomm
Adreno OpenCL (arm64), so Intel Arc and other Vulkan-capable GPUs were
silently ignored and fell back to the CPU llama.cpp variant.
Add hasVulkanCapableGPU (PCI-based, excludes NVIDIA and Adreno which
are handled by their own backends) and hasVulkan (probes vulkan-1.dll,
mirroring the existing OpenCL.dll probe). Update CanUseGPU to call
hasVulkan on amd64 when no CUDA GPU is found, and wire up a "vulkan"
variant in ensureLatestLlamaCpp with priority CUDA > Vulkan > CPU.
A TODO marks the point where a "vulkan" image variant of
docker/docker-model-backend-llamacpp needs to be published to Docker Hub
to complete the end-to-end fix.
Fixes #925
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 7b3a04d commit a0290ff
2 files changed
Lines changed: 60 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
30 | 41 | | |
31 | 42 | | |
32 | 43 | | |
| |||
39 | 50 | | |
40 | 51 | | |
41 | 52 | | |
| 53 | + | |
| 54 | + | |
42 | 55 | | |
43 | 56 | | |
44 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
102 | 142 | | |
103 | 143 | | |
104 | | - | |
| 144 | + | |
105 | 145 | | |
106 | 146 | | |
107 | 147 | | |
108 | 148 | | |
109 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
110 | 155 | | |
111 | 156 | | |
112 | 157 | | |
0 commit comments