Otherwise I see hangs in the omp_single_copyprivate test when
compiling in release mode. With the debug assertions, I get a
failure `head > 0 && tail > 0`.
Differential Revision: https://reviews.llvm.org/D40722
llvm-svn: 320150
}
dequeued = FALSE;
} else {
+ KMP_MB();
tail = *tail_id_p;
if (head == tail) { /* only one thread on the queue */
#ifdef DEBUG_QUEUING_LOCKS
result = 0;
nr_iterations = 0;
- #pragma omp parallel
+ #pragma omp parallel num_threads(4)
{
int i;
for (i = 0; i < LOOPCOUNT; i++)