Function: get_device_count
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Obtains the number of available devices.
Prototype
- C Prototype
1aclError aclrtGetDeviceCount(uint32_t *count)
- Python Function
1count, ret = acl.rt.get_device_count()
Parameter Description
None.
Return Value Description
Return Value |
Description |
|---|---|
count |
Int, number of devices. |
ret |
Int, error code: 0 on success; else, failure. |
Parent topic: Device Management