[Libomptarget] Check errors when synchronizing the async queue
authorJoseph Huber <jhuber6@vols.utk.edu>
Thu, 16 Feb 2023 20:50:56 +0000 (14:50 -0600)
committerJoseph Huber <jhuber6@vols.utk.edu>
Thu, 16 Feb 2023 20:56:09 +0000 (14:56 -0600)
commit5172877bbddc4e718e4bee57369c820d82f9a784
tree63644339bcfb369bd382bc4583a4de2213051169
parent48c8e16020483b9a2699b7bacda99e8fd0a6d051
[Libomptarget] Check errors when synchronizing the async queue

Summary:
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