[OpenMP] Expose libomptarget function to get HW thread id
authorGiorgis Georgakoudis <georgakoudis1@llnl.gov>
Wed, 21 Jul 2021 07:18:38 +0000 (00:18 -0700)
committerGiorgis Georgakoudis <georgakoudis1@llnl.gov>
Wed, 21 Jul 2021 17:26:04 +0000 (10:26 -0700)
commit5a682d9b9109494cb46e16b493cf4afc5e25e598
tree3a6a6e12659f0c79534e597b680fa04b172a7d29
parent345ace026b6e5cdbc38d207291e4b399d72e62ee
[OpenMP] Expose libomptarget function to get HW thread id

The patch exposes the libomptarget runtime function that gets the hardware thread id through the kmpc API. This is to be used in SPMDization for checking the thread id to execute regions by a single thread in a block.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D106323
12 files changed:
llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.hip
openmp/libomptarget/deviceRTLs/common/debug.h
openmp/libomptarget/deviceRTLs/common/omptargeti.h
openmp/libomptarget/deviceRTLs/common/src/data_sharing.cu
openmp/libomptarget/deviceRTLs/common/src/libcall.cu
openmp/libomptarget/deviceRTLs/common/src/omptarget.cu
openmp/libomptarget/deviceRTLs/common/src/parallel.cu
openmp/libomptarget/deviceRTLs/common/src/reduction.cu
openmp/libomptarget/deviceRTLs/common/src/support.cu
openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.cu
openmp/libomptarget/deviceRTLs/target_interface.h