Synchronous and Asynchronous APIs

CANN supports the following explicit synchronization types. After calling these types of APIs, the host thread is blocked until the related tasks are completed.

For asynchronous APIs, the API call only indicates that tasks are delivered. The function is returned to the host thread before the tasks are completed. You need to call the explicit synchronization APIs to block the host thread until the tasks are completed.