acltdtStopChannel

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Description

Wakes up and stops a blocked sending (acltdtSendTensor is called) or receiving (acltdtReceiveTensor is called) thread. This API is especially useful when a thread is blocked due to running out of data. To wake up and stop a blocked sending or receiving thread, call this API in a thread other than the blocked thread.

Prototype

1
aclError acltdtStopChannel(acltdtChannelHandle *handle)

Parameters

Parameter

Input/Output

Description

handle

Input

Channel.

Call acltdtCreateChannel or acltdtCreateChannelWithCapacity to create data of the acltdtChannelHandle type in advance.

Returns

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