Function: get_device_capability
Applicable Products
- Ascend 950PR&950DT products: Supported
- Atlas A3 products: supported
- Atlas A2 products: Supported
- Atlas 200I/500 A2 inference products: Supported
- Atlas inference products: Supported
- Atlas training products: Supported
Function
Queries whether the device feature is supported.
Prototype
-
C Prototype
aclError aclrtGetDeviceCapability(int32_t deviceId, aclrtDevFeatureType devFeatureType, int32_t *value) -
Python Function
value, ret = acl.rt.get_device_capability(device_id, dev_feature_type)
Parameters
| Parameter | Description |
|---|---|
| device_id | Int, device ID. |
| dev_feature_type | Int, enumerated value. For details, see aclrtDevFeatureType. |
Return Values
| Return Value | Description |
|---|---|
| ret | Int, error code. If 0 is returned, the operation is successful. If other values are returned, the operation fails. |
| value | Int, whether the feature is supported.0: no1: yes |