Skip to content
Draft
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
284e2d1
Add Array and ArrayFormat to cuda.core (refs #467)
rparolin May 13, 2026
a679885
Add copy_from / copy_to to cuda.core.Array (refs #467)
rparolin May 13, 2026
a4a5d5e
Add TextureObject and ResourceDescriptor/TextureDescriptor (refs #467)
rparolin May 13, 2026
0a0948a
Add SurfaceObject for kernel-side typed load/store (refs #467)
rparolin May 14, 2026
27b4554
Add ResourceDescriptor.from_linear and .from_pitch2d (refs #467)
rparolin May 14, 2026
168a248
Add docs for texture/surface APIs (refs #467)
rparolin May 14, 2026
53f993e
Add MipmappedArray and ResourceDescriptor.from_mipmapped_array (refs …
rparolin May 14, 2026
229465e
Add texture sampling example (refs #467)
rparolin May 14, 2026
e653b68
Merge branch 'main' into feature/cuda-core-texture-surface-467
rparolin May 15, 2026
aec7fed
Address code review feedback on texture/surface stack (refs #467)
rparolin May 15, 2026
cd68c99
Add 9 cuda.core texture/surface examples (refs #467)
rparolin May 15, 2026
1432c0a
cuda.core: rename Array->CUDAArray, surface_load_store->is_surface_lo…
rparolin Jun 10, 2026
fbe880a
Merge branch 'main' into feature/cuda-core-texture-surface-467
rparolin Jun 10, 2026
264f2e6
cuda.core: fix lint/mypy after merging main; add generated .pyi stubs
rparolin Jun 10, 2026
7982308
cuda.core: rename surface_load_store ctor keyword to is_surface_load_…
rparolin Jun 10, 2026
5673ddb
cuda.core: add 7 texture/surface graphics examples
rparolin Jun 10, 2026
088115b
cuda.core: dedup texture/array validation; fix docstring + address_mo…
rparolin Jun 11, 2026
cf9441c
cuda.core: remove dead _context field and orphaned helper
rparolin Jun 11, 2026
d8c2db6
caustics improvements
rparolin Jun 11, 2026
a8ae98b
cuda.core: add numba-cuda-mlir port of the Stable Fluids example
rparolin Jun 12, 2026
554839f
cuda.core: satisfy ruff on the numba-cuda-mlir fluid example
rparolin Jun 12, 2026
8016ece
Merge remote-tracking branch 'upstream/main' into feature/cuda-core-t…
rparolin Jun 12, 2026
ceeb814
cuda.core: isolate numba-cuda-mlir in its own env (fix texture exampl…
rparolin Jun 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions cuda_core/cuda/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,17 @@ class _PatchedProperty(metaclass=_PatchedPropMeta):
WorkqueueResource,
WorkqueueResourceOptions,
)
from cuda.core._array import Array, ArrayFormat
from cuda.core._mipmapped_array import MipmappedArray
from cuda.core._texture import (
AddressMode,
FilterMode,
ReadMode,
ResourceDescriptor,
TextureDescriptor,
TextureObject,
)
from cuda.core._surface import SurfaceObject
from cuda.core._event import Event, EventOptions
from cuda.core._graphics import GraphicsResource
from cuda.core._launch_config import LaunchConfig
Expand Down
25 changes: 25 additions & 0 deletions cuda_core/cuda/core/_array.pxd
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# SPDX-License-Identifier: Apache-2.0

from libc.stdint cimport intptr_t
from cuda.bindings cimport cydriver


cdef class Array:

cdef:
cydriver.CUarray _handle
tuple _shape # (w,), (w, h), or (w, h, d)
cydriver.CUarray_format _format
unsigned int _num_channels # 1, 2, or 4
int _device_id
intptr_t _context
bint _owning
bint _surface_load_store
# Optional strong reference to a parent owner (e.g. a MipmappedArray
# whose level this Array views). When set, the parent must outlive
# this Array because the underlying CUarray belongs to the parent.
object _parent_ref

cpdef close(self)
Loading