[Openmp-commits] [openmp] [openmp] Fix bug63197.c test with 3 cores (PR #183269)

Nikita Popov via Openmp-commits openmp-commits at lists.llvm.org
Wed Feb 25 02:31:52 PST 2026


================
@@ -8,6 +8,13 @@ int main(int argc, char *argv[]) {
 #pragma omp single
   { printf("BBB %2d\n", omp_get_num_threads()); }
 
+  // This test relies on the number of available threads
+  // being something other than 3.
----------------
nikic wrote:

It's testing that the `omp parallel num_threads(3)` a few lines above doesn't apply to the `omp parallel` below. If the number of available threads is 3, then `omp parallel` is going to start 3 threads by itself, not because of leakage from `omp parallel num_threads(3)` and the test will incorrectly fail.

https://github.com/llvm/llvm-project/pull/183269


More information about the Openmp-commits mailing list