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

Function default_backend

ds4_eval.c:1488–1496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1486 if (!strcmp(s, "rocm")) return DS4_BACKEND_CUDA;
1487#else
1488 if (!strcmp(s, "cuda")) return DS4_BACKEND_CUDA;
1489#endif
1490 if (!strcmp(s, "cpu")) return DS4_BACKEND_CPU;
1491 fprintf(stderr, "ds4-eval: invalid value for %s: %s\n", opt, s);
1492#ifdef DS4_ROCM_BUILD
1493 fprintf(stderr, "ds4-eval: valid backends are: metal, rocm, cpu\n");
1494#else
1495 fprintf(stderr, "ds4-eval: valid backends are: metal, cuda, cpu\n");
1496#endif
1497 exit(2);
1498}
1499

Callers 1

parse_optionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected