aclrtRandomNumAsync

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product / Atlas A3 inference product

Atlas A2 training product / Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Description

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

Prototype

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

Parameters

Parameter

Input/Output

Description

taskInfo

Input

Random number generation task information. For details about the type definition, see aclrtRandomNumTaskInfo.

stream

Input

Stream that executes the random number generation task. For details about the type definition, see aclrtStream.

reserve

Input

Reserved parameter. Currently, the value is fixed to NULL.

Returns

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

API Call Example

For the API call example, see Random number generation (Random).