acltdtGetQueueRouteParam

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Description

Obtains information about the queue route configuration, such as the source queue ID and destination queue ID.

Prototype

aclError acltdtGetQueueRouteParam(const acltdtQueueRoute *route, acltdtQueueRouteParamType type, size_t len, size_t *paramRetSize, void *param)

Parameters

Parameter

Input/Output

Description

route

Input

Pointer to the queue route configuration information.

Call the acltdtCreateQueueRoute API to create data of the acltdtQueueRoute type in advance.

type

Input

Route parameter type.

len

Input

Parameter value length.

  • If the parameter type is *_UINT64, set the parameter to 8.
  • If the parameter type is *_UINT32, set the parameter to 4.
  • If the parameter type is *_PTR, set the parameter to 4 for a 32-bit operating system and to 8 for a 64-bit operating system.

paramRetSize

Output

Pointer to the number of bytes of the returned parameter value.

param

Output

Pointer to the parameter value.

Returns

0 on success; else, failure. For details, see aclError.