函数:get_device_count
产品支持情况
产品  | 
是否支持  | 
|---|---|
√  | 
|
√  | 
|
√  | 
|
√  | 
|
√  | 
|
√  | 
使用说明
C函数原型  | 
aclError aclrtGetDeviceCount(uint32_t *count)  | 
|---|---|
Python函数  | 
count, ret = acl.rt.get_device_count()  | 
函数功能  | 
获取可用Device的数量。  | 
输入说明  | 
无  | 
返回值说明  | 
count:int,获取Device数量。 ret:int,错误码。 
  | 
约束说明  | 
无  | 
父主题: Device管理