MCPcopy Create free account
hub / github.com/apache/tvm / max_clock_rate

Method max_clock_rate

python/tvm/runtime/device.py:138–151  ·  view source on GitHub ↗

Return the max clock frequency of device (kHz). Returns device value for CUDA, ROCm, and OpenCL. Returns remote device value for RPC devices. Returns None for all other devices. Returns ------- max_clock_rate : int or None The maximum c

(self)

Source from the content-addressed store, hash-verified

136
137 @property
138 def max_clock_rate(self):
139 """Return the max clock frequency of device (kHz).
140
141 Returns device value for CUDA, ROCm, and OpenCL. Returns
142 remote device value for RPC devices. Returns None for all
143 other devices.
144
145 Returns
146 -------
147 max_clock_rate : int or None
148 The maximum clock frequency of the device (kHz)
149
150 """
151 return self._GetDeviceAttr(self.dlpack_device_type(), self.index, 6)
152
153 @property
154 def multi_processor_count(self):

Callers

nothing calls this directly

Calls 1

_GetDeviceAttrMethod · 0.95

Tested by

no test coverage detected