Intel® Math Kernel Library 2018 Developer Reference - C

dnnAllocateBuffer

Allocates an array with a given layout.

Syntax

dnnError_t dnnAllocateBuffer_F32 (void **pPtr, dnnLayout_t layout);

dnnError_t dnnAllocateBuffer_F64 (void **pPtr, dnnLayout_t layout);

Include Files

Input Parameters

Layout

The layout of the array to allocate.

Output Parameters

pPtr

Pointer to the pointer to the array.

Description

Each dnnAllocateBuffer function allocates memory for arrays having a given layout. These arrays can be opaque structures that contain pointers to the actual data, as well as some auxiliary information.