dsmi_get_fan_count
Prototype
int dsmi_get_fan_count(int device_id, int* count)
Description
Obtains the fan count of an the Ascend AI Processor.
Mini modules (EP) are supported.
Parameters
Parameter |
Input/Output |
Description |
---|---|---|
device_id |
Input |
Device ID For the Ascend 310 AI Processor, the value range is 0–63. Obtain the actual device ID by calling dsmi_list_device. |
count |
Output |
Fan count, fixed at 1 currently |
Returns
Type |
Description |
---|---|
int |
0 on success; else, failure |
Restrictions
None
Example
int ret = 0; int count = 0; ret = dsmi_get_fan_count(0, &count); if(ret != 0) { //To-do: records logs. return ret; } ...