]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Set num_threads to 50 on 32-bit hppa in two libgomp loop tests
authorJohn David Anglin <danglin@gcc.gnu.org>
Thu, 1 Feb 2024 19:09:53 +0000 (19:09 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Thu, 1 Feb 2024 19:09:53 +0000 (19:09 +0000)
We support a maximum of 50 threads on 32-bit hppa.

2024-02-01  John David Anglin  <danglin@gcc.gnu.org>

libgomp/ChangeLog:

* testsuite/libgomp.c++/loop-3.C: Set num_threads to 50
on 32-bit hppa.
* testsuite/libgomp.c/omp-loop03.c: Likewise.

libgomp/testsuite/libgomp.c++/loop-3.C
libgomp/testsuite/libgomp.c/omp-loop03.c

index fa50f099f3ff4330532799f74659face4ba44ffe..3f460f114bf04a1452cbdd98b3ccb1f3197b25f4 100644 (file)
@@ -1,3 +1,9 @@
+#if defined(__hppa__) && !defined(__LP64__)
+#define NUM_THREADS 50
+#else
+#define NUM_THREADS 64
+#endif
+
 extern "C" void abort (void);
 int a;
 
@@ -19,7 +25,7 @@ foo ()
 int
 main (void)
 {
-#pragma omp parallel num_threads (64)
+#pragma omp parallel num_threads (NUM_THREADS)
   foo ();
 
   return 0;
index 7bb9a194331efc18f354dbb638e393978c0e1a24..9879981cf4a293f5764d57685e1002524ae807f7 100644 (file)
@@ -1,3 +1,9 @@
+#if defined(__hppa__) && !defined(__LP64__)
+#define NUM_THREADS 50
+#else
+#define NUM_THREADS 64
+#endif
+
 extern void abort (void);
 int a;
 
@@ -19,7 +25,7 @@ foo ()
 int
 main (void)
 {
-#pragma omp parallel num_threads (64)
+#pragma omp parallel num_threads (NUM_THREADS)
   foo ();
 
   return 0;