dsmi_enable_container_service
Prototype
int dsmi_enable_container_service(void)
Description
Enables the current container to monitor all devices. If the monitor process where this API is called exits, the current container no longer monitors all devices.
For the Ascend 310 AI Processor, this API supports mini modules (EP) and standard PCIe cards.
Parameters
None
Returns
Type |
Description |
---|---|
int |
0 on success; else, failure |
Example
... int ret = 0; ret = dsmi_enable_container_service(); ...