Skip to content

Commit 9d53409

Browse files
committed
Document cuMemGetInfo fix in CHANGES.md
1 parent 48936c8 commit 9d53409

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

CHANGES.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@ For deployment and usage instructions, see `README.md`.
55

66
---
77

8+
## 2026-05-18
9+
10+
### Fix cuMemGetInfo to use real-time memory tracking
11+
12+
`cuMemGetInfo` and `cuMemGetInfo_v2` were only using NVML-reported usage, which
13+
lags behind actual allocations. This caused the functions to report more free
14+
memory than was actually available during rapid allocation sequences.
15+
16+
Added `get_current_usage_for_meminfo()` helper that returns `max(tracked_usage,
17+
nvml_usage)` — the same pattern used in `oom_check_nolock`. This ensures fast
18+
allocations are immediately reflected in memory queries while retaining
19+
cross-process visibility via NVML.
20+
21+
---
22+
823
## 2026-05-17
924

1025
### Fix latent cuMemcpy2D / cuMemcpy2DUnaligned dispatch-table swap

0 commit comments

Comments
 (0)