Get compute version number as string. Returns maximum API version (e.g. CUDA/OpenCL/Vulkan) supported by the device. Returns device value for CUDA, ROCm, OpenCL, and Vulkan. Returns remote device value for RPC devices. Returns None for all other devices.
(self)
| 101 | |
| 102 | @property |
| 103 | def compute_version(self): |
| 104 | """Get compute version number as string. |
| 105 | |
| 106 | Returns maximum API version (e.g. CUDA/OpenCL/Vulkan) |
| 107 | supported by the device. |
| 108 | |
| 109 | Returns device value for CUDA, ROCm, OpenCL, and |
| 110 | Vulkan. Returns remote device value for RPC devices. Returns |
| 111 | None for all other devices. |
| 112 | |
| 113 | Returns |
| 114 | ------- |
| 115 | version : str or None |
| 116 | The version string in `major.minor` format. |
| 117 | |
| 118 | """ |
| 119 | return self._GetDeviceAttr(self.dlpack_device_type(), self.index, 4) |
| 120 | |
| 121 | @property |
| 122 | def device_name(self): |
nothing calls this directly
no test coverage detected