sys_exit

Applicable Products

Product

Supported (√/x)

Ascend 950PR&950DT products

√

Atlas A3 products

√

Atlas A2 products

√

Atlas training products

x

Atlas inference products

√

Atlas 200I/500 A2 inference products

√

Description

Deinitializes the low-level hardware of the media data processing system after media data, such as images and videos, is processed.

Prototype

  • C Prototype
    1
    hi_s32 hi_mpi_sys_exit()
    
  • Python Function
    1
    ret = acl.himpi.sys_exit()
    

Parameters

None

Return Values

Return Value

Description

ret

Int, error code: 0 on success; else, failure.

Constraints

  • Repeated calls to this API return no failures.
  • After this API is called for deinitialization, the resources for processing media data in the system are freed. Therefore, APIs (except acl.himpi.sys_init) in the media data processing V2 section cannot be called. Otherwise, exceptions may occur during API calling or the return code may be incorrect.
  • This API must be called before runtime resources are freed. For details about the runtime resource allocation process, see Runtime Resource Allocation.

Reference

For details about the API call sequence and examples, see Media Data Processing V2.