aclrtUnSubscribeHostFunc
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
X |
X |
|
X |
|
X |
|
X |
|
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.
Parent topic: Other APIs