Coverage for cuda/core/system/__init__.py: 0.00%

12 statements  

« prev     ^ index     » next       coverage.py v7.16.2, created at 2026-10-16 01:23 +0000

1# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. 

2# 

3# SPDX-License-Identifier: Apache-2.0 

4 

5 

6# NOTE: We must maintain that it is always possible to import this module 

7# without CUDA being installed, and without CUDA being initialized or any 

8# contexts created, so that a user can use NVML to explore things about their 

9# system without loading CUDA. 

10 

11__all__ = [ 

12 "CUDA_BINDINGS_NVML_IS_COMPATIBLE", 

13 "get_driver_branch", 

14 "get_kernel_mode_driver_version", 

15 "get_num_devices", 

16 "get_nvml_version", 

17 "get_process_name", 

18 "get_user_mode_driver_version", 

19] 

20 

21 

22from cuda.core.system import typing 

23 

24from ._device import * 

25from ._device import __all__ as _device_all 

26from ._system import * 

27from ._system_events import * 

28from ._system_events import __all__ as _system_events_all 

29from .exceptions import * 

30from .exceptions import __all__ as _exceptions_all 

31 

32__all__.extend(_device_all) 

33__all__.extend(_system_events_all) 

34__all__.extend(_exceptions_all)