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
{{ message }}
Repository navigation
Commit 681e046
Browse filesBrowse the repository at this point in the historyBrowse files
Three items from the NVIDIA#2188 design review (Andy-Jost):
A+B. CUDAArray.copy_from / copy_to now match the Buffer copy API:
- Accept Stream | GraphBuilder (via Stream_accept), so array copies can be
captured into a CUDA graph — previously only a concrete Stream was accepted.
- copy_to returns the destination object, for parity with Buffer.copy_to.
The internal _copy3d helper now takes an already-coerced Stream.
C. Group the texture/surface object model under a new cuda.core.textures
namespace instead of the flat cuda.core namespace, before v1.1.0 ships (it is
hard to move post-release). Adds cuda/core/textures.py re-exporting CUDAArray,
ArrayFormat, MipmappedArray, ResourceDescriptor, TextureDescriptor,
TextureObject, SurfaceObject, AddressMode, FilterMode, ReadMode; removes the
flat exports from cuda.core.__init__ (grouped-only — no deprecation needed
pre-release); migrates the texture/surface examples, texture_sample, and the
docs api.rst section to the new namespace.
Tests: update the stream-rejection match; add copy_to-returns-dst and a
GraphBuilder-capture test for CUDAArray copies.
Verified: texture/surface suite 65 passed; full cuda_core suite 3449 passed /
230 skipped / 3 xfailed; all examples byte-compile; cuda.core.textures exports
the 10 symbols and cuda.core.CUDAArray is gone.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
0 commit comments