[Libomptarget] Check errors when synchronizing the async queue
authorJoseph Huber <jhuber6@vols.utk.edu>
Thu, 16 Feb 2023 15:51:21 +0000 (09:51 -0600)
committerJoseph Huber <jhuber6@vols.utk.edu>
Thu, 16 Feb 2023 16:10:21 +0000 (10:10 -0600)
commit861709107b43d40ad366e0efd225cb804be3b44d
tree29e18a1af625068d10ee5736967fbf4b42b5f213
parentf6fa5a66d8a8190002d3eb542e4b5a99deb53004
[Libomptarget] Check errors when synchronizing the async queue

Currently when we synchronize the asynchronous queue for the plugins, we
ignore the return value. This is problematic because we will continue on
like nothing happened if the kernel fails.

Fixes https://github.com/llvm/llvm-project/issues/60814

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D144191
openmp/libomptarget/include/omptarget.h
openmp/libomptarget/src/interface.cpp
openmp/libomptarget/src/omptarget.cpp
openmp/libomptarget/src/private.h