aclrtUnSubscribeHostFunc

Applicability

Product

Supported

Atlas 350 Accelerator Card

X

Atlas A3 training product/Atlas A3 inference product

X

Atlas A2 training product/Atlas A2 inference product

X

Atlas 200I/500 A2 inference product

X

Atlas inference product

X

Atlas training product

X

Description

Unsubscribes from a thread so that the callback function in the stream is no longer processed by the specified thread. This API must be used in pair with aclrtSubscribeHostFunc.

Prototype

1
aclError aclrtUnSubscribeHostFunc(uint64_t hostFuncThreadId, aclrtStream exeStream)

Parameters

Parameter

Input/Output

Description

hostFuncThreadId

Input

Thread ID.

exeStream

Input

Stream. For details about the type definition, see aclrtStream.

Returns

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