From 5acee7dd4789159e6cf99c3eb49bea93fe7ef050 Mon Sep 17 00:00:00 2001 From: Kevin Sala Date: Sun, 4 Dec 2022 01:40:39 +0100 Subject: [PATCH] [OpenMP][libomptarget] Add hasQueue() function in NextGen plugin's AsyncInfoWrapperTy This patch prepares the PluginInterface for the new AMDGPU NextGen plugin. Differential Revision: https://reviews.llvm.org/D139263 --- .../plugins-nextgen/common/PluginInterface/PluginInterface.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h index 827d600..4882755 100644 --- a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h +++ b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h @@ -65,6 +65,9 @@ struct AsyncInfoWrapperTy { return reinterpret_cast(AsyncInfoPtr->Queue); } + /// Indicate whether there is queue. + bool hasQueue() const { return (AsyncInfoPtr->Queue != nullptr); } + private: Error &Err; ErrorAsOutParameter ErrOutParam; -- 2.7.4