aclrtMemPoolMallocAsync

Note: This API is reserved and is not supported currently.

Function

Allocates memory of a specified size from the memory pool. This is an asynchronous API.

Prototype

1
aclError aclrtMemPoolMallocAsync(void **ptr, size_t size, aclrtMemPool memPool, aclrtStream stream)

Parameters

Parameter

Input/Output

Description

ptr

Output

Pointer to the address of the memory to be allocated.

size

Input

Size of the memory to be allocated, in bytes.

memPool

Input

Memory pool instance. For details about the type definition, see aclrtMemPool.

stream

Input

Stream for executing the memory allocation task. For details about the type definition, see aclrtStream.

Returns

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