Skip to content

Commit 78166b0

Browse files
author
yangshiqi
committed
fix sig.
Signed-off-by: yangshiqi <[email protected]>
1 parent fcfc20d commit 78166b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cuda/memory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ CUresult cuMemGetInfo_v2(size_t* free, size_t* total) {
509509
} else {
510510
CUDA_OVERRIDE_CALL(cuda_library_entry,cuMemGetInfo_v2, free, total);
511511
LOG_MSG("orig free=%ld total=%ld limit=%ld usage=%ld",*free,*total,limit,usage);
512-
// Ensure total memory does not exceed the physical or imposed limit.
512+
513513
size_t actual_limit = (limit > *total) ? *total : limit;
514514
*free = (actual_limit > usage) ? (actual_limit - usage) : 0;
515515
*total = actual_limit;

0 commit comments

Comments
 (0)