1
1

Report error when choosing incorrect GPU backend.

This commit is contained in:
2022-10-19 14:46:20 +02:00
parent dce3327404
commit 57ae554740

View File

@@ -1141,7 +1141,12 @@ static int arg_handle_gpu_backend_set(int argc, const char **argv, void *UNUSED(
printf("\nError: Unrecognized GPU backend for '--gpu-backend'.\n");
return 0;
}
GPU_backend_type_selection_set(gpu_backend);
if (!GPU_backend_supported()) {
printf("\nError: GPU backend not supported.\n");
return 0;
}
return 1;
}