Skip to content

Commit f39bdc9

Browse files
mdboomrwgkkkraus14
authored
Redo of Make cuda.bindings.nvml public (NVIDIA#1544) (NVIDIA#1548)
* Make cuda.bindings.nvml public (NVIDIA#1544) * cuda.bindings.nvml: Small follow-on to NVIDIA#1524 * cuda.bindings.nvml: Make public * Fix NVML is compatible * Update cuda_core/cuda/core/system/_system.pyx Co-authored-by: Ralf W. Grosse-Kunstleve <rwgkio@gmail.com> --------- Co-authored-by: Ralf W. Grosse-Kunstleve <rwgkio@gmail.com> * Update cuda_core/cuda/core/system/_system.pyx Co-authored-by: Keith Kraus <keith.j.kraus@gmail.com> --------- Co-authored-by: Ralf W. Grosse-Kunstleve <rwgkio@gmail.com> Co-authored-by: Keith Kraus <keith.j.kraus@gmail.com>
1 parent 63b68c1 commit f39bdc9

25 files changed

Lines changed: 43 additions & 39 deletions

cuda_bindings/cuda/bindings/_internal/_nvml.pxd renamed to cuda_bindings/cuda/bindings/_internal/nvml.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# This code was automatically generated across versions from 12.9.1 to 13.1.1. Do not modify it directly.
66

7-
from ..cy_nvml cimport *
7+
from ..cynvml cimport *
88

99

1010
###############################################################################
File renamed without changes.

cuda_bindings/cuda/bindings/_internal/_nvml_windows.pyx renamed to cuda_bindings/cuda/bindings/_internal/nvml_windows.pyx

File renamed without changes.

cuda_bindings/cuda/bindings/_test_helpers/arch_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from contextlib import contextmanager
66

77
import pytest
8-
from cuda.bindings import _nvml as nvml
8+
from cuda.bindings import nvml
99

1010

1111
@contextmanager
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# This code was automatically generated across versions from 12.9.1 to 13.1.1. Do not modify it directly.
66

7-
from ._internal cimport _nvml as _nvml
7+
from ._internal cimport nvml as _nvml
88

99

1010
###############################################################################
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from libc.stdint cimport intptr_t
88

9-
from .cy_nvml cimport *
9+
from .cynvml cimport *
1010

1111

1212
###############################################################################

cuda_bindings/tests/nvml/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33

44
from collections import namedtuple
55

66
import pytest
7-
from cuda.bindings import _nvml as nvml
7+
from cuda.bindings import nvml
88
from cuda.bindings._test_helpers.arch_check import unsupported_before # noqa: F401
99

1010

cuda_bindings/tests/nvml/test_compute_mode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import sys
66

77
import pytest
8-
from cuda.bindings import _nvml as nvml
8+
from cuda.bindings import nvml
99

1010
from .conftest import unsupported_before
1111

0 commit comments

Comments
 (0)