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: align deallocate signatures and revert Graph.launch (#2001)
- Make `deallocate` keyword-only on the synchronous resources
(`LegacyPinnedMemoryResource`, `_SynchronousMemoryResource`,
`VirtualMemoryResource`) so every memory-resource API obeys the
kw-only rule, with `stream=None` as the default since these resources
do not actually use the stream.
- Revert `Graph.launch` to take `stream` positionally. It is the same
shape as the kernel `launch(stream, config, kernel, *args)` API
(already exempt in the issue) and shouldn't be the odd one out.
- Tighten `VirtualMemoryResource.deallocate` docstring to match
`allocate`.
- Mark unused lambda args in `test_pass_object` as `_stream` to silence
ARG005.
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments