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