Obtains the number of compute-capable devices. This API is synchronous.
aclError aclrtGetDeviceCount(uint32_t *count)
Parameter |
Input/Output |
Description |
|---|---|---|
count |
Output |
Pointer to the number of devices. |
0 on success; else, failure.