[OpenMP] Unify "exec_mode" query code and default to SPMD
authorJohannes Doerfert <johannes@jdoerfert.de>
Wed, 28 Dec 2022 04:43:10 +0000 (20:43 -0800)
committerJohannes Doerfert <johannes@jdoerfert.de>
Wed, 4 Jan 2023 00:58:13 +0000 (16:58 -0800)
commit428bc510bf50f1517b4216c1499885d82c8bce9a
treec1b0df5867384a3cec099c66b36d7b6b4c0fcb6d
parentce6ae0b2a26b1ec2f770b2b9474cc4486d60c586
[OpenMP] Unify "exec_mode" query code and default to SPMD

Defaulting to Generic mode doesn't make much sense as the kernel needs
to be prepared for it. SPMD mode is the "native" execution, e.g., for
"bare" kernels. It also is the execution method for constructors and
destructors (as we might otherwise throw an extra warp onto them).

Differential Revision: https://reviews.llvm.org/D140718
openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp
openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp