llvm-project/openmp/runtime/test/tasking/hidden_helper_task
AndreyChurbanov cb1bee4725 [OpenMP] libomp: fix UB when LIBOMP_NUM_HIDDEN_HELPER_THREADS=1.
The __kmp_hidden_helper_threads_num set to N+1 if user requested N threads.
Thus number of worker hidden helper threads corresponds to user request,
main thread of helper team excluded as it does not participate in actual work.
This also fixes divide-by-0 issue in the code.

Fixes #48656

Differential Revision: https://reviews.llvm.org/D119586
2022-02-12 03:00:38 +03:00
..
capacity_mix_threads.cpp [OpenMP] Fixed a crash in hidden helper thread 2021-03-18 18:25:36 -04:00
capacity_nthreads.cpp [openmp] [test] Add missing <limits> include to capacity_nthreads 2021-07-06 20:39:53 +02:00
common.h [OpenMP] libomp: fixed implementation of OMP 5.1 inoutset task dependence type 2021-06-16 14:47:29 +03:00
depend.cpp [OpenMP] Fix task wait doesn't work as expected in serialized team 2021-08-31 12:15:46 -04:00
gtid.cpp [OpenMP] Fix task wait doesn't work as expected in serialized team 2021-08-31 12:15:46 -04:00
single_helper_thread.c [OpenMP] libomp: fix UB when LIBOMP_NUM_HIDDEN_HELPER_THREADS=1. 2022-02-12 03:00:38 +03:00
taskgroup.cpp