[Openmp-commits] [PATCH] D84062: [OpenMP] libomp cleanup: add check of input global tid parameter

Shilei Tian via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Jul 17 13:13:37 PDT 2020


tianshilei1992 added inline comments.


================
Comment at: openmp/runtime/src/kmp.h:3082
+static inline void __kmp_assert_valid_gtid(kmp_int32 gtid) {
+  if (UNLIKELY(gtid < 0))
+    KMP_FATAL(ThreadIdentInvalid);
----------------
Do we need to check whether `gtid` is less than the size of `__kmp_threads`?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D84062/new/

https://reviews.llvm.org/D84062





More information about the Openmp-commits mailing list