fix gpu_info_cuda.c compile warning (#3077)

This commit is contained in:
mofanke 2024-03-13 02:08:40 +08:00 committed by GitHub
parent b5fcd9d3aa
commit 51578d8573
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 totalMem %llu\n", i, memInfo.total);
LOG(h.verbose, "[%d] CUDA usedMem %ld\n", i, memInfo.used); LOG(h.verbose, "[%d] CUDA usedMem %llu\n", i, memInfo.used);
resp->total += memInfo.total; resp->total += memInfo.total;
resp->free += memInfo.free; resp->free += memInfo.free;