Skip to content

Commit fe7f620

Browse files
committed
[OpenMP][Tests][NFC] Mark unsupported libomp tests for GCC
This patch properly marks the support level for libomp test when testing with GCC. Some new OpenMP features were only introduced with GCC 11. Tests using the target construct are incompatibe with GCC. Tests pass now with GCC 10, 11, 12
1 parent 39a959e commit fe7f620

File tree

7 files changed

+23
-2
lines changed

7 files changed

+23
-2
lines changed

openmp/runtime/test/parallel/bug54082.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
// This test is adapted from test_parallel_for_allocate.c in SOLLVE V&V.
22
// https://github.com/SOLLVE/sollve_vv/blob/master/tests/5.0/parallel_for/test_parallel_for_allocate.c
33
// RUN: %libomp-compile-and-run
4+
5+
// Support for allocate was added in GCC 11
6+
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7, gcc-8, gcc-9, gcc-10
7+
48
#include <omp.h>
59

610
#include <assert.h>

openmp/runtime/test/parallel/omp_parallel_if.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
// RUN: %libomp-compile-and-run
22
// RUN: %libomp-irbuilder-compile-and-run
3+
4+
// irbuilder is only available with clang
5+
// REQUIRES: clang
6+
37
#include <stdio.h>
48
#include "omp_testsuite.h"
59

openmp/runtime/test/tasking/hidden_helper_task/single_helper_thread.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// RUN: %libomp-compile && env LIBOMP_NUM_HIDDEN_HELPER_THREADS=1 %libomp-run
22

3+
// gcc/icc target offloading is incompatible with libomp
4+
// UNSUPPORTED: icc, gcc
5+
36
// The test checks that "devide-by-0" bug fixed in runtime.
47
// The fix is to increment number of threads by 1 if positive,
58
// so that operation

openmp/runtime/test/teams/teams-distr-on-host.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
// It checks that the bug in implementation of distribute construct is fixed.
33

44
// RUN: %libomp-compile-and-run
5-
// UNSUPPORTED: icc
5+
6+
// gcc/icc target offloading is incompatible with libomp
7+
// UNSUPPORTED: icc, gcc
68

79
#include <stdio.h>
810
#include <omp.h>

openmp/runtime/test/teams/teams_resize.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %libomp-compile && env OMP_DYNAMIC=true KMP_DYNAMIC_MODE=random %libomp-run
2-
// UNSUPPORTED: icc
2+
3+
// gcc/icc target offloading is incompatible with libomp
4+
// UNSUPPORTED: icc, gcc
35

46
// This is a super simple unit test to see that teams behave properly when
57
// parallel regions inside the teams construct cannot allocate teams of

openmp/runtime/test/worksharing/for/omp_for_collapse_non_rectangular.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// RUN: %libomp-compile-and-run
22

3+
// Support for collapse of non-rectangular loop nests was added in GCC 11
4+
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7, gcc-8, gcc-9, gcc-10
5+
36
#include <stdio.h>
47

58
#define N 3

openmp/runtime/test/worksharing/for/omp_for_non_rectangular.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// RUN: %libomp-compile-and-run
22

3+
// Support for collapse of non-rectangular loop nests was added in GCC 11
4+
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7, gcc-8, gcc-9, gcc-10
5+
36
#define N 10
47
int arr[N][N][N];
58

0 commit comments

Comments
 (0)