MCPcopy Create free account
hub / github.com/antirez/ds4 / cli_warn_think_max_downgraded

Function cli_warn_think_max_downgraded

ds4_cli.c:218–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216
217static ds4_backend parse_backend(const char *s) {
218 if (!strcmp(s, "metal")) return DS4_BACKEND_METAL;
219#ifdef DS4_ROCM_BUILD
220 if (!strcmp(s, "rocm")) return DS4_BACKEND_CUDA;
221#else
222 if (!strcmp(s, "cuda")) return DS4_BACKEND_CUDA;
223#endif
224 if (!strcmp(s, "cpu")) return DS4_BACKEND_CPU;
225 fprintf(stderr, "ds4: invalid backend: %s\n", s);
226#ifdef DS4_ROCM_BUILD
227 fprintf(stderr, "ds4: valid backends are: metal, rocm, cpu\n");
228#else
229 fprintf(stderr, "ds4: valid backends are: metal, cuda, cpu\n");

Callers 2

run_replFunction · 0.85
mainFunction · 0.85

Calls 3

cli_think_max_downgradedFunction · 0.85
ds4_logFunction · 0.85

Tested by

no test coverage detected