aclmdlExecConfigAttr

typedef enum {
    ACL_MDL_STREAM_SYNC_TIMEOUT = 0,
    ACL_MDL_EVENT_SYNC_TIMEOUT,
    ACL_MDL_WORK_ADDR_PTR,
    ACL_MDL_WORK_SIZET,
    ACL_MDL_MPAIMID_SIZET,      /** param reserved */ 
    ACL_MDL_AICQOS_SIZET,       /** param reserved */ 
    ACL_MDL_AICOST_SIZET,       /** param reserved */ 
    ACL_MDL_MEC_TIMETHR_SIZET   /** param reserved */ 
} aclmdlExecConfigAttr;
Table 1 Enumeration items

Enumerated Item

Description

ACL_MDL_STREAM_SYNC_TIMEOUT

Controls the timeout of a stream task during model inference. This attribute value is of the INT32 type.

The options are as follows:

  • -1 (default): forever.
  • > 0: specific timeout interval, in ms.

ACL_MDL_EVENT_SYNC_TIMEOUT

Controls the timeout of an event task during model inference. This attribute value is of the INT32 type.

The options are as follows:

  • -1 (default): forever.
  • > 0: specific timeout interval, in ms.

ACL_MDL_WORK_ADDR_PTR

Pointer to the workspace required by the model (temporary data during model execution is stored on the device). The workspace is managed by the user. Generally, this mode is used in the scenario where a model is loaded once and concurrent jobs are executed.

If both ACL_MDL_WORK_ADDR_PTR and ACL_RT_STREAM_WORK_ADDR_PTR (indicating the workspace of the model on the stream) in aclrtStreamConfigAttr are configured, ACL_MDL_WORK_ADDR_PTR is used.

Not supported in the current version.

ACL_MDL_WORK_SIZET

Workspace size required for model execution, in bytes. Generally, this mode is used in the scenario where a model is loaded once and concurrent jobs are executed.

Not supported in the current version.

ACL_MDL_MPAIMID_SIZET

Reserved configuration.

ACL_MDL_AICQOS_SIZET

Reserved configuration.

ACL_MDL_AICOST_SIZET

Reserved configuration.

ACL_MDL_MEC_TIMETHR_SIZET

Reserved configuration.