| 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 |