aclrtRandomNumAsync

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

Delivers and executes a random number generation task. This API is asynchronous.

Prototype

aclError aclrtRandomNumAsync(const aclrtRandomNumTaskInfo *taskInfo, const aclrtStream stream, void *reserve)

Parameters

Parameter

Input/Output

Description

taskInfo

Input

Random number generation task information.

stream

Input

Stream that executes the random number generation task.

reserve

Input

Reserved. Currently, the value is fixed to NULL.

Returns

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