mindspore.hal.get_device_capability
- mindspore.hal.get_device_capability(device_id, device_target=None)[source]
Get specified device's capability, this api will be deprecated and removed in future versions.
- Parameters
- Returns
tuple(param1, param2) for GPU.
param1 - int, cuda major revision number.
param2 - int, cuda minor revision number.
None for Ascend and CPU.
Examples
>>> import mindspore >>> device_target = mindspore.context.get_context("device_target") >>> print(mindspore.hal.get_device_capability(0, device_target))