We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5b6bd2 commit 2fe1114Copy full SHA for 2fe1114
ggml/src/ggml-remotingfrontend/virtgpu.cpp
@@ -62,7 +62,10 @@ create_virtgpu() {
62
1024);
63
64
virt_gpu_result_t result = virtgpu_open(gpu);
65
- assert(result == APIR_SUCCESS);
+ if (result != APIR_SUCCESS) {
66
+ FATAL("%s: failed to create the open the virtgpu device :/", __func__);
67
+ return NULL;
68
+ }
69
70
result = virtgpu_init_params(gpu);
71
assert(result == APIR_SUCCESS);
@@ -126,7 +129,7 @@ virtgpu_open(struct virtgpu *gpu)
126
129
drmDevicePtr devs[8];
127
130
int count = drmGetDevices2(0, devs, ARRAY_SIZE(devs));
128
131
if (count < 0) {
- ERROR("failed to enumerate DRM devices");
132
+ ERROR("%s: failed to enumerate DRM devices", __func__);
133
return APIR_ERROR_INITIALIZATION_FAILED;
134
}
135
0 commit comments