get_device_properties
- paddle.device.default_backend. get_device_properties ( device: _CustomPlaceLike | None = None ) _customDeviceProperties [source]
-
Return the properties of given custom device.
- Parameters
-
device (CustomPlace|str|int|None, optional) – The device, the id of the device or the string name of device like ‘metax_gpu:x’ which to get the properties of the device from. Notice that this api only supports gpgpu devices. If device is None, the device is the current device. Default: None.
- Returns
-
- The properties of the device which include device name,
-
major compute capability, minor compute capability, global memory available and the number of multiprocessors on the device.
- Return type
-
_customDeviceProperties
Examples
>>> import paddle >>> paddle.device.get_device_properties('metax_gpu:0') >>> paddle.device.get_device_properties(0) >>> paddle.device.get_device_properties(paddle.CustomPlace('metax_gpu', 0))
