-
Notifications
You must be signed in to change notification settings - Fork 298
Expand file tree
/
Copy path_array.pxd
More file actions
25 lines (20 loc) · 810 Bytes
/
Copy path_array.pxd
File metadata and controls
25 lines (20 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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)