Skip to content

Commit 0fcce4f

Browse files
authored
[OpenMP] Mark problematic tests as XFAIL / UNSUPPORTED (llvm#161267)
Summary: Several of these tests have been failing for literal years. Ideally we make efforts to fix this, but keeping these broken has had serious consequences on our testing infrastructure where failures are the norm so almost all test failures are disregarded. I made a tracking issue for the ones that have been disabled. llvm#161265
1 parent b629981 commit 0fcce4f

17 files changed

+58
-42
lines changed

offload/test/mapping/lambda_by_value.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %libomptarget-compilexx-run-and-check-generic
1+
// RUN: %libomptarget-compileopt-generic -fno-exceptions
2+
// RUN: %libomptarget-run-generic 2>&1 | %fcheck-generic
23

34
#include <stdint.h>
45
#include <stdio.h>

offload/test/mapping/map_back_race.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
// Taken from https://github.com/llvm/llvm-project/issues/54216
44

5+
// FIXME: https://github.com/llvm/llvm-project/issues/161265
6+
// UNSUPPORTED: gpu
7+
58
#include <algorithm>
69
#include <cstdlib>
710
#include <iostream>

offload/test/mapping/map_both_pointer_pointee.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
// RUN: %libomptarget-compile-run-and-check-aarch64-unknown-linux-gnu
2-
// RUN: %libomptarget-compile-run-and-check-powerpc64-ibm-linux-gnu
3-
// RUN: %libomptarget-compile-run-and-check-powerpc64le-ibm-linux-gnu
4-
// RUN: %libomptarget-compile-run-and-check-x86_64-unknown-linux-gnu
5-
// RUN: %libomptarget-compile-run-and-check-nvptx64-nvidia-cuda
1+
// RUN: %libomptarget-compile-run-and-check-generic
62

73
// REQUIRES: unified_shared_memory
84
// UNSUPPORTED: amdgcn-amd-amdhsa
5+
//
6+
// FIXME: https://github.com/llvm/llvm-project/issues/161265
7+
// XFAIL: nvidiagpu
98

109
#pragma omp declare target
1110
int *ptr1;

offload/test/mapping/map_ptr_and_star_local.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
// RUN: %libomptarget-compilexx-run-and-check-generic
1+
// RUN: %libomptarget-compile-run-and-check-generic
22

33
// REQUIRES: libc
4+
//
5+
// FIXME: https://github.com/llvm/llvm-project/issues/161265
6+
// XFAIL: gpu
47

58
#include <omp.h>
69
#include <stdio.h>

offload/test/mapping/map_structptr_and_member_global.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
// RUN: %libomptarget-compilexx-run-and-check-generic
1+
// RUN: %libomptarget-compile-run-and-check-generic
22

33
// REQUIRES: libc
4+
//
5+
// FIXME: https://github.com/llvm/llvm-project/issues/161265
6+
// XFAIL: gpu
47

58
#include <omp.h>
69
#include <stdio.h>

offload/test/mapping/map_structptr_and_member_local.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
// RUN: %libomptarget-compilexx-run-and-check-generic
1+
// RUN: %libomptarget-compile-run-and-check-generic
22

33
// REQUIRES: libc
4+
//
5+
// FIXME: https://github.com/llvm/llvm-project/issues/161265
6+
// XFAIL: gpu
47

58
#include <omp.h>
69
#include <stdio.h>

offload/test/offloading/CUDA/basic_launch_multi_arg.cu

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
// RUN: %t | %fcheck-generic
66
// clang-format on
77

8-
// UNSUPPORTED: aarch64-unknown-linux-gnu
9-
// UNSUPPORTED: aarch64-unknown-linux-gnu-LTO
10-
// UNSUPPORTED: x86_64-unknown-linux-gnu
11-
// UNSUPPORTED: x86_64-unknown-linux-gnu-LTO
8+
// REQUIRES: gpu
9+
//
10+
// FIXME: https://github.com/llvm/llvm-project/issues/161265
11+
// XFAIL: gpu
1212

1313
#include <stdio.h>
1414

offload/test/offloading/bug51781.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// the generic state machine.
1717
//
1818
// RUN: %libomptarget-compile-generic -O2 -foffload-lto -Rpass=openmp-opt \
19+
// RUN: -Xoffload-linker -mllvm=-openmp-opt-disable-spmdization \
1920
// RUN: -mllvm -openmp-opt-disable-spmdization > %t.custom 2>&1
2021
// RUN: %fcheck-nvptx64-nvidia-cuda -check-prefix=CUSTOM -input-file=%t.custom
2122
// RUN: %fcheck-amdgcn-amd-amdhsa -check-prefix=CUSTOM -input-file=%t.custom
@@ -24,7 +25,9 @@
2425
// Repeat with reduction clause, which has managed to break the custom state
2526
// machine in the past.
2627
//
27-
// RUN: %libomptarget-compile-generic -O2 -foffload-lto -Rpass=openmp-opt -DADD_REDUCTION \
28+
// RUN: %libomptarget-compile-generic -O2 -foffload-lto -Rpass=openmp-opt \
29+
// RUN: -DADD_REDUCTION \
30+
// RUN: -Xoffload-linker -mllvm=-openmp-opt-disable-spmdization \
2831
// RUN: -mllvm -openmp-opt-disable-spmdization > %t.custom 2>&1
2932
// RUN: %fcheck-nvptx64-nvidia-cuda -check-prefix=CUSTOM -input-file=%t.custom
3033
// RUN: %fcheck-amdgcn-amd-amdhsa -check-prefix=CUSTOM -input-file=%t.custom

offload/test/offloading/fortran/declare-target-automap.f90

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
!Offloading test for AUTOMAP modifier in declare target enter
22
! REQUIRES: flang, amdgpu
33

4+
! FIXME: https://github.com/llvm/llvm-project/issues/161265
5+
! XFAIL: amdgpu
6+
47
! RUN: %libomptarget-compile-fortran-run-and-check-generic
58
program automap_program
69
use iso_c_binding, only: c_loc

offload/test/offloading/interop.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %libomptarget-compile-run-and-check-generic
2-
// REQUIRES: nvptx64-nvidia-cuda
2+
3+
// XFAIL: *
34

45
#include <assert.h>
56
#include <omp.h>

0 commit comments

Comments
 (0)