forked from NVIDIA/cuda-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_program.pxd
More file actions
22 lines (19 loc) · 874 Bytes
/
Copy path_program.pxd
File metadata and controls
22 lines (19 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# SPDX-License-Identifier: Apache-2.0
from ._linker cimport Linker
from ._resource_handles cimport NvrtcProgramHandle, NvvmProgramHandle
cdef class Program:
cdef:
NvrtcProgramHandle _h_nvrtc
NvvmProgramHandle _h_nvvm
str _backend
Linker _linker
object _options # ProgramOptions
object __weakref__
object _compile_lock # Per-instance lock for compile-time mutation
bint _use_libdevice # Flag for libdevice loading
bint _libdevice_added
bytes _code # Source code as bytes: used for key derivation and NVRTC PCH retry
str _code_type # Normalised code_type ("c++", "ptx", "nvvm")
str _pch_status # PCH creation outcome after compile