oneMKL
oneMKL copied to clipboard
Move `lapack_info_check` inside of `onemkl_cusolver_host_task`
Description
In some cases cuSolver operations can return a successful error code while failing. The previous implementation of this check is done via SYCL and requires the CPU to wait until the cuSolver function completes. This is not great for performance as it prevents the user for issuing more work to the queue until it has received a response from oneMKL.
This PR moves the check inside the host task.
@AidanBeltonS I've updated the cusolver_batch.cpp cases too, can you check it is OK?
LGTM!
@ericlars Could we get a review of this from someone? Thanks