MCPcopy Create free account
hub / github.com/evilsocket/cake / should_force_cpu

Function should_force_cpu

cake-mobile/src/lib.rs:156–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154// ---------------------------------------------------------------------------
155
156fn 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")]
173fn metal_supports_simdgroup_matrix() -> bool {

Callers 2

run_zero_config_workerFunction · 0.85
run_direct_workerFunction · 0.85

Calls 1

Tested by

no test coverage detected