[Openmp-commits] [openmp] r321262 - [OMPT] Add annotations to testcases that are expected to fail when using certain compilers
Joachim Protze via Openmp-commits
openmp-commits at lists.llvm.org
Thu Dec 21 05:55:16 PST 2017
Author: jprotze
Date: Thu Dec 21 05:55:16 2017
New Revision: 321262
URL: http://llvm.org/viewvc/llvm-project?rev=321262&view=rev
Log:
[OMPT] Add annotations to testcases that are expected to fail when using certain compilers
Reasons for expected failures are mainly bugs when using lables in OpenMP regions
or missing support of some OpenMP features.
For some worksharing clauses, support to distinguish the kind of workshare was
added just recently.
If an issue was fixed in a minor release version of a compiler, we flag the
test as unsupported for this compiler version to avoid false positives.
Same for fixes that where backported to older compiler versions.
Differential Revision: https://reviews.llvm.org/D40384
Modified:
openmp/trunk/cmake/OpenMPTesting.cmake
openmp/trunk/runtime/test/ompt/cancel/cancel_taskgroup.c
openmp/trunk/runtime/test/ompt/cancel/cancel_worksharing.c
openmp/trunk/runtime/test/ompt/misc/control_tool.c
openmp/trunk/runtime/test/ompt/parallel/max_active_levels_serialized.c
openmp/trunk/runtime/test/ompt/parallel/nested.c
openmp/trunk/runtime/test/ompt/parallel/nested_lwt.c
openmp/trunk/runtime/test/ompt/parallel/nested_serialized.c
openmp/trunk/runtime/test/ompt/parallel/parallel_if0.c
openmp/trunk/runtime/test/ompt/parallel/serialized.c
openmp/trunk/runtime/test/ompt/synchronization/barrier/explicit.c
openmp/trunk/runtime/test/ompt/synchronization/barrier/for_loop.c
openmp/trunk/runtime/test/ompt/synchronization/barrier/for_simd.c
openmp/trunk/runtime/test/ompt/synchronization/barrier/single.c
openmp/trunk/runtime/test/ompt/synchronization/critical.c
openmp/trunk/runtime/test/ompt/synchronization/ordered.c
openmp/trunk/runtime/test/ompt/synchronization/taskgroup.c
openmp/trunk/runtime/test/ompt/synchronization/taskwait.c
openmp/trunk/runtime/test/ompt/synchronization/test_nest_lock_parallel.c
openmp/trunk/runtime/test/ompt/tasks/dependences.c
openmp/trunk/runtime/test/ompt/tasks/explicit_task.c
openmp/trunk/runtime/test/ompt/tasks/serialized.c
openmp/trunk/runtime/test/ompt/worksharing/for/dynamic_split.c
openmp/trunk/runtime/test/ompt/worksharing/for/guided_split.c
openmp/trunk/runtime/test/ompt/worksharing/for/runtime_split.c
openmp/trunk/runtime/test/ompt/worksharing/sections.c
Modified: openmp/trunk/cmake/OpenMPTesting.cmake
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/cmake/OpenMPTesting.cmake?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/cmake/OpenMPTesting.cmake (original)
+++ openmp/trunk/cmake/OpenMPTesting.cmake Thu Dec 21 05:55:16 2017
@@ -124,6 +124,8 @@ endif()
function(set_test_compiler_features)
if ("${OPENMP_TEST_COMPILER_ID}" STREQUAL "GNU")
set(comp "gcc")
+ elseif ("${OPENMP_TEST_COMPILER_ID}" STREQUAL "Intel")
+ set(comp "icc")
else()
# Just use the lowercase of the compiler ID as fallback.
string(TOLOWER "${OPENMP_TEST_COMPILER_ID}" comp)
Modified: openmp/trunk/runtime/test/ompt/cancel/cancel_taskgroup.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/cancel/cancel_taskgroup.c?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/cancel/cancel_taskgroup.c (original)
+++ openmp/trunk/runtime/test/ompt/cancel/cancel_taskgroup.c Thu Dec 21 05:55:16 2017
@@ -1,7 +1,8 @@
// RUN: %libomp-compile && env OMP_CANCELLATION=true %libomp-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
-// Current GOMP interface implementation does not support cancellation
-// XFAIL: gcc
+// UNSUPPORTED: clang-3, clang-4.0.0
+// Current GOMP interface implementation does not support cancellation; icc 16 has a bug
+// XFAIL: gcc, icc-16
#include "callback.h"
#include <unistd.h>
Modified: openmp/trunk/runtime/test/ompt/cancel/cancel_worksharing.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/cancel/cancel_worksharing.c?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/cancel/cancel_worksharing.c (original)
+++ openmp/trunk/runtime/test/ompt/cancel/cancel_worksharing.c Thu Dec 21 05:55:16 2017
@@ -1,8 +1,7 @@
// RUN: %libomp-compile && env OMP_CANCELLATION=true %libomp-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
-// Current GOMP interface implementation does not support cancellation
-// XFAIL: gcc
-
+// Current GOMP interface implementation does not support cancellation; icc 16 does not distinguish between sections and loops
+// XFAIL: gcc, icc-16
#include "callback.h"
#include <unistd.h>
Modified: openmp/trunk/runtime/test/ompt/misc/control_tool.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/misc/control_tool.c?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/misc/control_tool.c (original)
+++ openmp/trunk/runtime/test/ompt/misc/control_tool.c Thu Dec 21 05:55:16 2017
@@ -1,5 +1,6 @@
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
+// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
Modified: openmp/trunk/runtime/test/ompt/parallel/max_active_levels_serialized.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/parallel/max_active_levels_serialized.c?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/parallel/max_active_levels_serialized.c (original)
+++ openmp/trunk/runtime/test/ompt/parallel/max_active_levels_serialized.c Thu Dec 21 05:55:16 2017
@@ -1,6 +1,7 @@
// RUN: %libomp-compile-and-run | FileCheck %s
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=THREADS %s
// REQUIRES: ompt
+// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
Modified: openmp/trunk/runtime/test/ompt/parallel/nested.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/parallel/nested.c?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/parallel/nested.c (original)
+++ openmp/trunk/runtime/test/ompt/parallel/nested.c Thu Dec 21 05:55:16 2017
@@ -1,6 +1,7 @@
// RUN: %libomp-compile-and-run | FileCheck %s
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=THREADS %s
// REQUIRES: ompt
+// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
#include <unistd.h>
Modified: openmp/trunk/runtime/test/ompt/parallel/nested_lwt.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/parallel/nested_lwt.c?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/parallel/nested_lwt.c (original)
+++ openmp/trunk/runtime/test/ompt/parallel/nested_lwt.c Thu Dec 21 05:55:16 2017
@@ -1,6 +1,7 @@
// RUN: %libomp-compile-and-run | FileCheck %s
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=THREADS %s
// REQUIRES: ompt
+// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
#include <unistd.h>
Modified: openmp/trunk/runtime/test/ompt/parallel/nested_serialized.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/parallel/nested_serialized.c?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/parallel/nested_serialized.c (original)
+++ openmp/trunk/runtime/test/ompt/parallel/nested_serialized.c Thu Dec 21 05:55:16 2017
@@ -1,6 +1,7 @@
// RUN: %libomp-compile-and-run | FileCheck %s
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=THREADS %s
// REQUIRES: ompt
+// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
Modified: openmp/trunk/runtime/test/ompt/parallel/parallel_if0.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/parallel/parallel_if0.c?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/parallel/parallel_if0.c (original)
+++ openmp/trunk/runtime/test/ompt/parallel/parallel_if0.c Thu Dec 21 05:55:16 2017
@@ -1,5 +1,6 @@
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
+// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
int main()
Modified: openmp/trunk/runtime/test/ompt/parallel/serialized.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/parallel/serialized.c?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/parallel/serialized.c (original)
+++ openmp/trunk/runtime/test/ompt/parallel/serialized.c Thu Dec 21 05:55:16 2017
@@ -1,5 +1,6 @@
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
+// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
int main()
Modified: openmp/trunk/runtime/test/ompt/synchronization/barrier/explicit.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/synchronization/barrier/explicit.c?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/synchronization/barrier/explicit.c (original)
+++ openmp/trunk/runtime/test/ompt/synchronization/barrier/explicit.c Thu Dec 21 05:55:16 2017
@@ -1,5 +1,6 @@
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
+// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
Modified: openmp/trunk/runtime/test/ompt/synchronization/barrier/for_loop.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/synchronization/barrier/for_loop.c?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/synchronization/barrier/for_loop.c (original)
+++ openmp/trunk/runtime/test/ompt/synchronization/barrier/for_loop.c Thu Dec 21 05:55:16 2017
@@ -1,5 +1,6 @@
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
+// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
Modified: openmp/trunk/runtime/test/ompt/synchronization/barrier/for_simd.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/synchronization/barrier/for_simd.c?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/synchronization/barrier/for_simd.c (original)
+++ openmp/trunk/runtime/test/ompt/synchronization/barrier/for_simd.c Thu Dec 21 05:55:16 2017
@@ -1,5 +1,6 @@
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
+// XFAIL: gcc-4
#include "callback.h"
#include <omp.h>
Modified: openmp/trunk/runtime/test/ompt/synchronization/barrier/single.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/synchronization/barrier/single.c?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/synchronization/barrier/single.c (original)
+++ openmp/trunk/runtime/test/ompt/synchronization/barrier/single.c Thu Dec 21 05:55:16 2017
@@ -1,5 +1,6 @@
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
+// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
Modified: openmp/trunk/runtime/test/ompt/synchronization/critical.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/synchronization/critical.c?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/synchronization/critical.c (original)
+++ openmp/trunk/runtime/test/ompt/synchronization/critical.c Thu Dec 21 05:55:16 2017
@@ -1,5 +1,6 @@
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
+// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
Modified: openmp/trunk/runtime/test/ompt/synchronization/ordered.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/synchronization/ordered.c?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/synchronization/ordered.c (original)
+++ openmp/trunk/runtime/test/ompt/synchronization/ordered.c Thu Dec 21 05:55:16 2017
@@ -1,5 +1,6 @@
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
+// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
Modified: openmp/trunk/runtime/test/ompt/synchronization/taskgroup.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/synchronization/taskgroup.c?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/synchronization/taskgroup.c (original)
+++ openmp/trunk/runtime/test/ompt/synchronization/taskgroup.c Thu Dec 21 05:55:16 2017
@@ -1,5 +1,6 @@
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
+// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <unistd.h>
Modified: openmp/trunk/runtime/test/ompt/synchronization/taskwait.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/synchronization/taskwait.c?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/synchronization/taskwait.c (original)
+++ openmp/trunk/runtime/test/ompt/synchronization/taskwait.c Thu Dec 21 05:55:16 2017
@@ -1,5 +1,6 @@
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
+// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
Modified: openmp/trunk/runtime/test/ompt/synchronization/test_nest_lock_parallel.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/synchronization/test_nest_lock_parallel.c?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/synchronization/test_nest_lock_parallel.c (original)
+++ openmp/trunk/runtime/test/ompt/synchronization/test_nest_lock_parallel.c Thu Dec 21 05:55:16 2017
@@ -1,5 +1,6 @@
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
+// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
Modified: openmp/trunk/runtime/test/ompt/tasks/dependences.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/tasks/dependences.c?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/tasks/dependences.c (original)
+++ openmp/trunk/runtime/test/ompt/tasks/dependences.c Thu Dec 21 05:55:16 2017
@@ -1,5 +1,6 @@
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
+// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
Modified: openmp/trunk/runtime/test/ompt/tasks/explicit_task.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/tasks/explicit_task.c?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/tasks/explicit_task.c (original)
+++ openmp/trunk/runtime/test/ompt/tasks/explicit_task.c Thu Dec 21 05:55:16 2017
@@ -1,5 +1,6 @@
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
+// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
Modified: openmp/trunk/runtime/test/ompt/tasks/serialized.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/tasks/serialized.c?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/tasks/serialized.c (original)
+++ openmp/trunk/runtime/test/ompt/tasks/serialized.c Thu Dec 21 05:55:16 2017
@@ -1,5 +1,6 @@
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
+// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
#include <math.h>
Modified: openmp/trunk/runtime/test/ompt/worksharing/for/dynamic_split.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/worksharing/for/dynamic_split.c?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/worksharing/for/dynamic_split.c (original)
+++ openmp/trunk/runtime/test/ompt/worksharing/for/dynamic_split.c Thu Dec 21 05:55:16 2017
@@ -1,6 +1,7 @@
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %S/base_split.h
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=CHECK-LOOP %S/base_split.h
// REQUIRES: ompt
+// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#define SCHEDULE dynamic
#include "base_split.h"
Modified: openmp/trunk/runtime/test/ompt/worksharing/for/guided_split.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/worksharing/for/guided_split.c?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/worksharing/for/guided_split.c (original)
+++ openmp/trunk/runtime/test/ompt/worksharing/for/guided_split.c Thu Dec 21 05:55:16 2017
@@ -1,6 +1,7 @@
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %S/base_split.h
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=CHECK-LOOP %S/base_split.h
// REQUIRES: ompt
+// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#define SCHEDULE guided
#include "base_split.h"
Modified: openmp/trunk/runtime/test/ompt/worksharing/for/runtime_split.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/worksharing/for/runtime_split.c?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/worksharing/for/runtime_split.c (original)
+++ openmp/trunk/runtime/test/ompt/worksharing/for/runtime_split.c Thu Dec 21 05:55:16 2017
@@ -1,6 +1,7 @@
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %S/base_split.h
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=CHECK-LOOP %S/base_split.h
// REQUIRES: ompt
+// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#define SCHEDULE runtime
#include "base_split.h"
Modified: openmp/trunk/runtime/test/ompt/worksharing/sections.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/worksharing/sections.c?rev=321262&r1=321261&r2=321262&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/worksharing/sections.c (original)
+++ openmp/trunk/runtime/test/ompt/worksharing/sections.c Thu Dec 21 05:55:16 2017
@@ -1,7 +1,8 @@
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
-// GCC generates code that does not distinguish between sections and loops
-// XFAIL: gcc
+// Some compilers generate code that does not distinguish between sections and loops
+// XFAIL: gcc, clang-3, clang-4, clang-5, icc-16, icc-17
+// UNSUPPORTED: icc-18
#include "callback.h"
#include <omp.h>
More information about the Openmp-commits
mailing list