You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defmax_graphics_clock(self) ->Union[int, NaType]: # in MHz"""Maximum frequency of graphics (shader) clock in MHz. Returns: Union[int, NaType] The maximum frequency of graphics (shader) clock in MHz, or :const:`nvitop.NA` when not applicable. Command line equivalent: .. code:: bash nvidia-smi --id=<IDENTIFIER> --format=csv,noheader,nounits --query-gpu=clocks.max.graphics """# pylint: disable=line-too-longreturnself.clock_infos().graphics
@memoize_when_activated@ttl_cache(ttl=5.0)defclock_infos(self) ->ClockInfos: # in MHz"""Returns a named tuple with current clock speeds (in MHz) for the device. Returns: ClockInfos(graphics, sm, memory, video) A named tuple with current clock speeds (in MHz) for the device, the item could be :const:`nvitop.NA` when not applicable. """# pylint: disable=line-too-longreturnClockInfos(
graphics=libnvml.nvmlQuery(
'nvmlDeviceGetClockInfo', self.handle, libnvml.NVML_CLOCK_GRAPHICS
),
sm=libnvml.nvmlQuery('nvmlDeviceGetClockInfo', self.handle, libnvml.NVML_CLOCK_SM),
memory=libnvml.nvmlQuery('nvmlDeviceGetClockInfo', self.handle, libnvml.NVML_CLOCK_MEM),
video=libnvml.nvmlQuery(
'nvmlDeviceGetClockInfo', self.handle, libnvml.NVML_CLOCK_VIDEO
),
)
clocks=clock_infos
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: