You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cuda_core/cuda/core/_memory/_virtual_memory_resource.py:338: error: "Buffer" has no attribute "_size"; maybe "size"?
Indeed, Buffer does not expose _size to Python (and _virtual_memory_resource is Python, not Cython).
(Pdb) p buffer._size
*** AttributeError: 'cuda.core._memory._buffer.Buffer' object has no attribute '_size'. Did you mean: 'size'?
(Pdb) buffer._size = 42
*** AttributeError: 'cuda.core._memory._buffer.Buffer' object has no attribute '_size' and no __dict__ for setting new attributes. Did you mean: 'size'?
It doesn't look like we have any test coverage for this file.
We probably need to make Buffer.size a read/write property.
Activity
leofang commentedon May 7, 2026
Interesting, this path (
_grow_allocation_fast_path) should be covered by this testcuda-python/cuda_core/tests/test_memory.py
Line 950 in 2ddbe6b
not sure what's missing.
Fix NVIDIA#2049: Expose Buffer._size to Python (NVIDIA#2068)