aclrtCreateBinary

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

√

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

√

Function

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.

dataLen

Input

Memory size, in bytes.

Returns

Pointer to data of the aclrtBinary type.

Restrictions

In standard Ascend EP form, allocate memory on the host for the data parameter. In Ascend RC or Open Ctrl CPU form form, allocate memory on the device for the data parameter.