Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions cuda_core/cuda/core/system/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,11 @@
from ._system import *

if CUDA_BINDINGS_NVML_IS_COMPATIBLE:
from ._device import Device, DeviceArchitecture
from ._device import *
from ._device import __all__ as _device_all
from .exceptions import *
from .exceptions import __all__ as _exceptions_all

__all__.extend(
[
"get_nvml_version",
"Device",
"DeviceArchitecture",
]
)

__all__.append("get_nvml_version")
__all__.extend(_device_all)
__all__.extend(_exceptions_all)
11 changes: 10 additions & 1 deletion cuda_core/cuda/core/system/_device.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ cdef class Device:
"""
Representation of a device.

``cuda.core.system.Device`` provides access to various pieces of metadata
:class:`cuda.core.system.Device` provides access to various pieces of metadata
about devices and their topology, as provided by the NVIDIA Management
Library (NVML). To use CUDA with a device, use :class:`cuda.core.Device`.

Expand Down Expand Up @@ -312,3 +312,12 @@ cdef class Device:
board serial identifier.
"""
return nvml.device_get_uuid(self._handle)


__all__ = [
"BAR1MemoryInfo",
"Device",
"DeviceArchitecture",
"MemoryInfo",
"PciInfo",
]
4 changes: 4 additions & 0 deletions cuda_core/docs/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ CUDA system information and NVIDIA Management Library (NVML)
:template: autosummary/cyclass.rst

system.Device
system.DeviceArchitecture
system.MemoryInfo
system.BAR1MemoryInfo
system.PciInfo


.. module:: cuda.core.utils
Expand Down
Loading