[Openmp-commits] [openmp] [openmp] Fix bug63197.c test with 3 cores (PR #183269)
Shilei Tian via Openmp-commits
openmp-commits at lists.llvm.org
Wed Feb 25 09:11:47 PST 2026
================
@@ -4,14 +4,15 @@
#include <stdio.h>
int main(int argc, char *argv[]) {
-#pragma omp parallel num_threads(3) if (0)
+ unsigned N = omp_get_max_threads() - 1;
+#pragma omp parallel num_threads(N) if (0)
----------------
shiltian wrote:
I don't think we evaluated the output of the pint from this (parallel) region. We only evaluate the "PASS" in the parallel region below.
https://github.com/llvm/llvm-project/pull/183269
More information about the Openmp-commits
mailing list