dsmi_get_board_id
Prototype
int dsmi_get_board_id(int device_id, unsigned int *board_id)
Description
Obtains the board ID.
For the Ascend 310 AI Processor, this API supports mini modules (EP) and standard PCIe cards.
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. |
board_id |
Output |
Board ID |
Returns
Type |
Description |
---|---|
int |
0 on success; else, failure |
Exception Handling
None
Restrictions
None
Example
int ret = 0; unsigned int *board_id = 0; ret = dsmi_get_board_id (0,&board_id); if(ret != 0) { //To-do: records logs. return ret; }