Skip to content

Commit

Permalink
fix gpu_info_cuda.c compile warning (ollama#3077)
Browse files Browse the repository at this point in the history
  • Loading branch information
mofanke authored and zhewang1-intc committed May 13, 2024
1 parent a2f77b4 commit 0855167
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gpu/gpu_info_cuda.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ 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.used);
LOG(h.verbose, "[%d] CUDA totalMem %llu\n", i, memInfo.total);
LOG(h.verbose, "[%d] CUDA usedMem %llu\n", i, memInfo.used);

resp->total += memInfo.total;
resp->free += memInfo.free;
Expand Down

0 comments on commit 0855167

Please sign in to comment.