瀏覽代碼

fix: print usedMemory size right (#2827)

tylinux 1 年之前
父節點
當前提交
fa2f2b3563
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gpu/gpu_info_cuda.c

+ 1 - 1
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;