aclrtCreateBinary

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

Creates data of the aclrtBinary type. This data type is used to describe the binary information of an operator. The operator here is a custom operator developed by using Ascend C.

To destroy data of the aclrtBinary type, call aclrtDestroyBinary.

Prototype

1
aclrtBinary aclrtCreateBinary(const void *data, size_t dataLen)

Parameters

Parameter

Input/Output

Description

data

Input

Pointer to the memory address for storing the binary file (*.o file) data of the operator.

In standard Ascend EP form, allocate memory on the host. In Ascend RC or Ctrl CPU open form form, allocate memory on the device.

dataLen

Input

Memory size, in bytes

Returns

Pointer to data of the aclrtBinary type.