From fa2f2b356384a6ecd103952915e75a4b6a8c33a5 Mon Sep 17 00:00:00 2001 From: tylinux Date: Fri, 1 Mar 2024 03:11:04 +0800 Subject: [PATCH] fix: print usedMemory size right (#2827) --- gpu/gpu_info_cuda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpu/gpu_info_cuda.c b/gpu/gpu_info_cuda.c index d877ff0c..a64b4587 100644 --- a/gpu/gpu_info_cuda.c +++ b/gpu/gpu_info_cuda.c @@ -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 usedMem %ld\n", i, memInfo.free); + LOG(h.verbose, "[%d] CUDA usedMem %ld\n", i, memInfo.used); resp->total += memInfo.total; resp->free += memInfo.free;