Function: get_device_capability
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Queries whether the device feature is supported.
Prototype
- C Prototype
aclError aclrtGetDeviceCapability(int32_t deviceId, aclrtDevFeatureType devFeatureType, int32_t *value)
- Python Function
1value, ret = acl.rt.get_device_capability(device_id, dev_feature_type)
Parameter Description
Parameter |
Description |
|---|---|
device_id |
Int, device ID. |
dev_feature_type |
Int, enumerated value. For details, see aclrtDevFeatureType. |
Return Value Description
Return Value |
Description |
|---|---|
ret |
Int, error code: 0 on success; else, failure. |
value |
Int, whether the feature is supported.
|
Parent topic: Device Management