Merge pull request #2209 from dhiltgen/harden_mgmt

Fix crash on cuda ml init failure
This commit is contained in:
Daniel Hiltgen 2024-01-26 09:30:13 -08:00 committed by GitHub
commit 23a7ea593b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,6 +70,7 @@ void cuda_init(char *cuda_lib_path, cuda_init_resp_t *resp) {
resp->ch.handle = NULL;
snprintf(buf, buflen, "nvml vram init failure: %d", ret);
resp->err = strdup(buf);
return;
}
// Report driver version if we're in verbose mode, ignore errors