()
| 154 | // --------------------------------------------------------------------------- |
| 155 | |
| 156 | fn should_force_cpu() -> bool { |
| 157 | #[cfg(target_os = "android")] |
| 158 | { |
| 159 | // Android: CPU-only for now |
| 160 | true |
| 161 | } |
| 162 | #[cfg(target_os = "ios")] |
| 163 | { |
| 164 | !metal_supports_simdgroup_matrix() |
| 165 | } |
| 166 | #[cfg(not(any(target_os = "android", target_os = "ios")))] |
| 167 | { |
| 168 | false |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | #[cfg(target_os = "ios")] |
| 173 | fn metal_supports_simdgroup_matrix() -> bool { |
no test coverage detected