| 150 | } |
| 151 | |
| 152 | bool planner_prefill_uses_host_backend(core::BackendType backend_type) { |
| 153 | switch (backend_type) { |
| 154 | case core::BackendType::Vulkan: |
| 155 | // Vulkan keeps the validated host-prefill path for now; it can try the Metal |
| 156 | // decode-graph prompt prefill path below once parity and performance are checked. |
| 157 | return true; |
| 158 | case core::BackendType::Metal: |
| 159 | case core::BackendType::Cpu: |
| 160 | case core::BackendType::Cuda: |
| 161 | case core::BackendType::Hip: |
| 162 | case core::BackendType::BestAvailable: |
| 163 | return false; |
| 164 | } |
| 165 | return false; |
| 166 | } |
| 167 | |
| 168 | core::TensorValue reshape_planner_heads( |
no outgoing calls
no test coverage detected