sys_init

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product / Atlas A3 inference product

Atlas A2 training product / Atlas A2 inference product

Atlas training product

x

Atlas inference product

Atlas 200I/500 A2 inference product

Description

Initializes the low-level hardware of the media data processing system before processing media data such as images and videos.

Prototype

  • C Prototype
    1
    hi_s32 hi_mpi_sys_init(hi_void)
    
  • Python Function
    1
    ret = acl.himpi.sys_init()
    

Parameters

None

Return Value

Return Value

Description

ret

Int, error code.

0 indicates success.

Other values indicate failures. For details, see Common Return Codes.

Restrictions

  • needs to be called after runtime resources are allocated. For details about the resource application process, see Runtime Resource Allocation and Deallocation.
  • In multi-process scenarios, all processes must call this API to implement initialization.
  • In a single process, repeated calls to this API return no failures.
  • If there are multiple devices, initialize each device by calling acl.himpi.sys_init.

Reference

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