Skip to content

Commit 10943c8

Browse files
[pre-commit.ci] auto code formatting
1 parent 65fb587 commit 10943c8

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

cuda_bindings/cuda/bindings/utils/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33
from typing import Any, Callable
44

5+
from ._nvvm_utils import check_nvvm_options
56
from ._ptx_utils import get_minimal_required_cuda_ver_from_ptx_ver, get_ptx_ver
67
from ._version_check import warn_if_cuda_major_version_mismatch
7-
from ._nvvm_utils import check_nvvm_options
88

99
_handle_getters: dict[type, Callable[[Any], int]] = {}
1010

1111

1212
def _add_cuda_native_handle_getter(t: type, getter: Callable[[Any], int]) -> None:
1313
_handle_getters[t] = getter
1414

15+
1516
def get_cuda_native_handle(obj: Any) -> int:
1617
"""Returns the address of the provided CUDA Python object as a Python int.
1718

cuda_bindings/cuda/bindings/utils/_nvvm_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
def check_nvvm_options(options: Sequence[bytes]) -> bool:
2323
"""
2424
Abstracted from https://github.com/NVIDIA/numba-cuda/pull/681
25-
25+
2626
Check if the specified options are supported by the current libNVVM version.
2727
2828
The options are a list of bytes, each representing a compiler option.
@@ -31,8 +31,8 @@ def check_nvvm_options(options: Sequence[bytes]) -> bool:
3131
is returned.
3232
3333
If the test program compiles successfully, True is returned.
34-
35-
cuda.bindings.nvvm returns exceptions instead of return codes.
34+
35+
cuda.bindings.nvvm returns exceptions instead of return codes.
3636
3737
Parameters
3838
----------

cuda_core/tests/test_program.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,4 +705,4 @@ def test_program_options_as_bytes_nvvm_unsupported_option():
705705
"""Test that unsupported options raise CUDAError for NVVM backend"""
706706
options = ProgramOptions(arch="sm_80", lineinfo=True)
707707
with pytest.raises(CUDAError, match="not supported by NVVM backend"):
708-
options.as_bytes("nvvm")
708+
options.as_bytes("nvvm")

0 commit comments

Comments
 (0)