<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/132164>132164</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[OpenMP RT] omp_for_schedule_runtime.c debug assert hit
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
mikaoP
</td>
</tr>
</table>
<pre>
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 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
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJy0VM2OqzYUfhpnc1RkDGGSBYvcyUUdaa5m1E5VdRUZ-yS44z_Zh6Tz9pVh0m7aSnfRDSAwn78_H5mzuXjEnm2_sO1xI2eaQuqdeZfhdTMG_dE_MfFwRRgRPaTZe-MvQBMC6_gtpPc8yWT8hYnhHBITQ3DxdA7plNWEerZ4SrMn47BSrONg_PIvYSbIsyGEm6EJJFgzBhdBBReNRV0WHnGcL-CCRpBewyePydACIXPGRDARxcyaAxMDE8PF0DSPlQqOicHa6_32Q0zhd1TExDDaMDIxOGl8YRvRu8jE8MmSiSEnxcTw7uJJmxwlqalSMTLRPNddvWP8wPjhbUIwOc_lCj4QqOCzyYSe7AckjCnoWZnRIsxeYwIfkpO2LNOGTPAZxplgRBUcZnAhIcgYZUJPcJtwdSl_ZEJXtlhBJpTXD7BB6tU1N1sy0SLEFBTmjPkeULXS_KfojAcJXQuq7PnHrgMn1WT86vECW7ZWwbnygjUHKFgdv03GIqC_wsu319Ovh6e30-vL89Pjb6w5xlKjKy5ffn788evxl-evrDlmkmTUKRNKy8Rj3UL1nwWpyEUQULes-QI6gJaE66NH1vFV0xCKm7d7HYr5iz5ZzKbwl_kIhhY9YSb4JFhBCS6V8oXz2qJ0yUwMRdYaxTkF9z-UqhSeieE7D0zpnLhTLRAb3Td63-zlBvv6oRVtx_meb6a-4SOXStbnh7PE_ahFfe62ut02etvudkptTC-42PJGcL5ra7GvRCs60ShZb8f9rhFn1nJ00tiqSKtCumyWgvd1I-qu3Vg5os3LmBDC422tPxOiTI3UL36M8yWzlluTKf8NQ4bsMl9eIvpvr_DTG9se4d9Vg17O_f18G9rMyfbfHcnCr2T7KeDaiz8DAAD__x_5q2A">