aclrtBinaryGetFunction

Applicability

Product

Supported

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

Description

Queries the kernel function based on the kernel function name and uses funcHandle to express the kernel function.

Prototype

aclError aclrtBinaryGetFunction(const aclrtBinHandle binHandle, const char *kernelName, aclrtFuncHandle *funcHandle)

Parameters

Parameter

Input/Output

Description

binHandle

Input

Handle of the operator binary.

Call aclrtBinaryLoadFromFile or aclrtBinaryLoadFromData to obtain the operator binary handle and pass it as an input parameter.

kernelName

Input

Kernel function name.

funcHandle

Output

Kernel function handle.

Returns

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