[Openmp-commits] [openmp] 5acee7d - [OpenMP][libomptarget] Add hasQueue() function in NextGen plugin's AsyncInfoWrapperTy
Kevin Sala via Openmp-commits
openmp-commits at lists.llvm.org
Sun Dec 4 04:25:57 PST 2022
Author: Kevin Sala
Date: 2022-12-04T13:24:40+01:00
New Revision: 5acee7dd4789159e6cf99c3eb49bea93fe7ef050
URL: https://github.com/llvm/llvm-project/commit/5acee7dd4789159e6cf99c3eb49bea93fe7ef050
DIFF: https://github.com/llvm/llvm-project/commit/5acee7dd4789159e6cf99c3eb49bea93fe7ef050.diff
LOG: [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
Added:
Modified:
openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
Removed:
################################################################################
diff --git a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
index 827d60094f53e..4882755834b9f 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<Ty &>(AsyncInfoPtr->Queue);
}
+ /// Indicate whether there is queue.
+ bool hasQueue() const { return (AsyncInfoPtr->Queue != nullptr); }
+
private:
Error &Err;
ErrorAsOutParameter ErrOutParam;
More information about the Openmp-commits
mailing list