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
fa2f2b35
Unverified
Commit
fa2f2b35
authored
Mar 01, 2024
by
tylinux
Committed by
GitHub
Feb 29, 2024
Browse files
fix: print usedMemory size right (#2827)
parent
cbf4970e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
gpu/gpu_info_cuda.c
gpu/gpu_info_cuda.c
+1
-1
No files found.
gpu/gpu_info_cuda.c
View file @
fa2f2b35
...
@@ -156,7 +156,7 @@ void cuda_check_vram(cuda_handle_t h, mem_info_t *resp) {
...
@@ -156,7 +156,7 @@ void cuda_check_vram(cuda_handle_t h, mem_info_t *resp) {
}
}
LOG
(
h
.
verbose
,
"[%d] CUDA totalMem %ld
\n
"
,
i
,
memInfo
.
total
);
LOG
(
h
.
verbose
,
"[%d] CUDA totalMem %ld
\n
"
,
i
,
memInfo
.
total
);
LOG
(
h
.
verbose
,
"[%d] CUDA usedMem %ld
\n
"
,
i
,
memInfo
.
free
);
LOG
(
h
.
verbose
,
"[%d] CUDA usedMem %ld
\n
"
,
i
,
memInfo
.
used
);
resp
->
total
+=
memInfo
.
total
;
resp
->
total
+=
memInfo
.
total
;
resp
->
free
+=
memInfo
.
free
;
resp
->
free
+=
memInfo
.
free
;
...
...
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