aclrtUnSubscribeHostFunc

The Atlas 200/300/500 Inference Product does not support this API.

The Atlas Training Series Product does not support this API.

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

aclError aclrtUnSubscribeHostFunc(uint64_t hostFuncThreadId, aclrtStream exeStream)

Parameters

Parameter

Input/Output

Description

hostFuncThreadId

Input

Thread ID.

exeStream

Input

Stream.

Returns

The value 0 indicates success, and other values indicate failure. For details, see aclError.