Description
I've been running the worksharing/for/omp_for_schedule_runtime.c
in the test suite with a libomp compiled in Debug mode and I've hit the assert https://github.com/llvm/llvm-project/blob/main/openmp/runtime/src/kmp_dispatch.cpp#L1618
The issue is not consistently reproducible under normal conditions but becomes more apparent when the system is under heavy load with multiple processes running.
I've been running in a 64 core x86_64 machine and with the command :
while env OMP_WAIT_POLICY=passive OMP_SCHEDULE=static_steal,14 ./omp_for_schedule_runtime.c.tmp 2 14; do date; done
For now I've not been able to reproduce it without passive. The rest of the args/env comes from https://github.com/llvm/llvm-project/blob/main/openmp/runtime/test/worksharing/for/omp_for_schedule_runtime.c#L12 of the test