Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
23a7ea59
Unverified
Commit
23a7ea59
authored
Jan 26, 2024
by
Daniel Hiltgen
Committed by
GitHub
Jan 26, 2024
Browse files
Merge pull request #2209 from dhiltgen/harden_mgmt
Fix crash on cuda ml init failure
parents
197e420a
5d9c4a5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
gpu/gpu_info_cuda.c
gpu/gpu_info_cuda.c
+1
-0
No files found.
gpu/gpu_info_cuda.c
View file @
23a7ea59
...
@@ -70,6 +70,7 @@ void cuda_init(char *cuda_lib_path, cuda_init_resp_t *resp) {
...
@@ -70,6 +70,7 @@ void cuda_init(char *cuda_lib_path, cuda_init_resp_t *resp) {
resp
->
ch
.
handle
=
NULL
;
resp
->
ch
.
handle
=
NULL
;
snprintf
(
buf
,
buflen
,
"nvml vram init failure: %d"
,
ret
);
snprintf
(
buf
,
buflen
,
"nvml vram init failure: %d"
,
ret
);
resp
->
err
=
strdup
(
buf
);
resp
->
err
=
strdup
(
buf
);
return
;
}
}
// Report driver version if we're in verbose mode, ignore errors
// Report driver version if we're in verbose mode, ignore errors
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment