[Openmp-commits] [PATCH] D105768: [OpenMP] Create and use `__kmpc_is_generic_main_thread`
Shilei Tian via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Sat Jul 10 18:39:17 PDT 2021
tianshilei1992 added inline comments.
================
Comment at: openmp/libomptarget/deviceRTLs/common/src/loop.cu:457
+ int tid = GetLogicalThreadIdInBlock();
+ ASSERT0(LT_FUSSY, gtid < GetNumberOfOmpThreads(checkSPMDMode(loc)),
"current thread is not needed here; error");
----------------
why do we still check location to tell if SPMD mode? Don't we want to completely remove it?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105768/new/
https://reviews.llvm.org/D105768
More information about the Openmp-commits
mailing list