Skip to content

Commit a62564f

Browse files
committed
merged main
2 parents b62cd87 + d17668b commit a62564f

25 files changed

Lines changed: 371 additions & 541 deletions

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ cuda_bindings/cuda/bindings/_bindings/cynvrtc.pxd
3030
cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx
3131
cuda_bindings/cuda/bindings/_internal/_nvml.pyx
3232
cuda_bindings/cuda/bindings/_internal/cufile.pyx
33+
cuda_bindings/cuda/bindings/_internal/nvfatbin.pyx
3334
cuda_bindings/cuda/bindings/_internal/nvjitlink.pyx
35+
cuda_bindings/cuda/bindings/_internal/nvml.pyx
3436
cuda_bindings/cuda/bindings/_internal/nvvm.pyx
3537
cuda_bindings/cuda/bindings/_lib/utils.pxd
3638
cuda_bindings/cuda/bindings/_lib/utils.pyx

cuda_bindings/pixi.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

@@ -118,6 +118,7 @@ cuda-pathfinder = ">=1.1,<2"
118118
libnvjitlink = "*"
119119
cuda-nvrtc = "*"
120120
cuda-nvvm = "*"
121+
libnvfatbin = "*"
121122

122123
[package.target.linux.run-dependencies]
123124
libcufile = "*"

cuda_bindings/tests/nvml/test_device.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ def test_device_get_performance_modes(all_devices):
9494
@pytest.mark.skipif(cuda_version_less_than(13010), reason="Introduced in 13.1")
9595
def test_device_get_unrepairable_memory_flag(all_devices):
9696
for device in all_devices:
97-
status = nvml.device_get_unrepairable_memory_flag_v1(device)
97+
with unsupported_before(device, None):
98+
status = nvml.device_get_unrepairable_memory_flag_v1(device)
9899
assert isinstance(status, int)
99100

100101

cuda_core/cuda/core/_context.pyx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

@@ -48,6 +48,9 @@ cdef class Context:
4848
def __hash__(self) -> int:
4949
return hash(as_intptr(self._h_context))
5050

51+
def __repr__(self) -> str:
52+
return f"<Context handle={as_intptr(self._h_context):#x} device={self._device_id}>"
53+
5154

5255
@dataclass
5356
class ContextOptions:

cuda_core/cuda/core/_cpp/resource_handles.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
// SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
//
33
// SPDX-License-Identifier: Apache-2.0
44

cuda_core/cuda/core/_cpp/resource_handles.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
// SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
//
33
// SPDX-License-Identifier: Apache-2.0
44

cuda_core/cuda/core/_event.pyx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

@@ -178,6 +178,9 @@ cdef class Event:
178178
cdef Event _other = <Event>other
179179
return as_intptr(self._h_event) == as_intptr(_other._h_event)
180180

181+
def __repr__(self) -> str:
182+
return f"<Event handle={as_intptr(self._h_event):#x}>"
183+
181184
def get_ipc_descriptor(self) -> IPCEventDescriptor:
182185
"""Export an event allocated for sharing between processes."""
183186
if self._ipc_descriptor is not None:

cuda_core/cuda/core/_launch_config.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

cuda_core/cuda/core/_launcher.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

cuda_core/cuda/core/_linker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

0 commit comments

Comments
 (0)