diff options
author | John David Anglin <danglin@gcc.gnu.org> | 2024-02-01 19:09:53 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2024-02-01 19:09:53 +0000 |
commit | b14209715e659f6d3ca0f9eef9a4851e7bd6e373 (patch) | |
tree | 89b61411762a60d61201be729070541663fc995e | |
parent | d71c7f107a4931c4c03729474d2397919b568817 (diff) | |
download | gcc-b14209715e659f6d3ca0f9eef9a4851e7bd6e373.zip gcc-b14209715e659f6d3ca0f9eef9a4851e7bd6e373.tar.gz gcc-b14209715e659f6d3ca0f9eef9a4851e7bd6e373.tar.bz2 |
Set num_threads to 50 on 32-bit hppa in two libgomp loop tests
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.
-rw-r--r-- | libgomp/testsuite/libgomp.c++/loop-3.C | 8 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c/omp-loop03.c | 8 |
2 files changed, 14 insertions, 2 deletions
diff --git a/libgomp/testsuite/libgomp.c++/loop-3.C b/libgomp/testsuite/libgomp.c++/loop-3.C index fa50f09..3f460f1 100644 --- a/libgomp/testsuite/libgomp.c++/loop-3.C +++ b/libgomp/testsuite/libgomp.c++/loop-3.C @@ -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; diff --git a/libgomp/testsuite/libgomp.c/omp-loop03.c b/libgomp/testsuite/libgomp.c/omp-loop03.c index 7bb9a19..9879981 100644 --- a/libgomp/testsuite/libgomp.c/omp-loop03.c +++ b/libgomp/testsuite/libgomp.c/omp-loop03.c @@ -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; |