函数:get_device_count
产品支持情况
产品 |
是否支持 |
---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
功能说明
获取可用Device的数量。
函数原型
- C函数原型
1
aclError aclrtGetDeviceCount(uint32_t *count)
- python函数
1
count, ret = acl.rt.get_device_count()
参数说明
无
返回值说明
返回值 |
说明 |
---|---|
count |
int,获取Device数量。 |
ret |
int,错误码,返回0表示成功,返回其它值表示失败。 |
父主题: Device管理