Asynchronous Execution

Asynchronous Execution#

The function qpl_execute_job() in Quick Start is the synchronous interface. It does not return until the job has completed. If the application wants to do other work while the job is being processed on the accelerator, it can use the asynchronous interface. In this case, the application specifies the Hardware Path or Auto Path for the execution and submits the job using qpl_submit_job(). The status of the job can then be periodically queried by qpl_check_job(). The application may call qpl_wait_job() to wait until the job completes.

Warning

Currently, Auto Path with asynchronous execution is not supported.

Note that the synchronous interface qpl_execute_job() is essentially a combination of the asynchronous interface qpl_submit_job() followed by qpl_wait_job().