Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion offload/test/mapping/lambda_by_value.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// RUN: %libomptarget-compilexx-run-and-check-generic
// RUN: %libomptarget-compileopt-generic -fno-exceptions
// RUN: %libomptarget-run-generic 2>&1 | %fcheck-generic

#include <stdint.h>
#include <stdio.h>
Expand Down
3 changes: 3 additions & 0 deletions offload/test/mapping/map_back_race.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

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

// FIXME: https://github.com/llvm/llvm-project/issues/161265
// UNSUPPORTED: gpu

#include <algorithm>
#include <cstdlib>
#include <iostream>
Expand Down
9 changes: 4 additions & 5 deletions offload/test/mapping/map_both_pointer_pointee.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
// RUN: %libomptarget-compile-run-and-check-aarch64-unknown-linux-gnu
// RUN: %libomptarget-compile-run-and-check-powerpc64-ibm-linux-gnu
// RUN: %libomptarget-compile-run-and-check-powerpc64le-ibm-linux-gnu
// RUN: %libomptarget-compile-run-and-check-x86_64-unknown-linux-gnu
// RUN: %libomptarget-compile-run-and-check-nvptx64-nvidia-cuda
// RUN: %libomptarget-compile-run-and-check-generic

// REQUIRES: unified_shared_memory
// UNSUPPORTED: amdgcn-amd-amdhsa
//
// FIXME: https://github.com/llvm/llvm-project/issues/161265
// XFAIL: nvidiagpu

#pragma omp declare target
int *ptr1;
Expand Down
5 changes: 4 additions & 1 deletion offload/test/mapping/map_ptr_and_star_local.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// RUN: %libomptarget-compilexx-run-and-check-generic
// RUN: %libomptarget-compile-run-and-check-generic

// REQUIRES: libc
//
// FIXME: https://github.com/llvm/llvm-project/issues/161265
// XFAIL: gpu

#include <omp.h>
#include <stdio.h>
Expand Down
5 changes: 4 additions & 1 deletion offload/test/mapping/map_structptr_and_member_global.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// RUN: %libomptarget-compilexx-run-and-check-generic
// RUN: %libomptarget-compile-run-and-check-generic

// REQUIRES: libc
//
// FIXME: https://github.com/llvm/llvm-project/issues/161265
// XFAIL: gpu

#include <omp.h>
#include <stdio.h>
Expand Down
5 changes: 4 additions & 1 deletion offload/test/mapping/map_structptr_and_member_local.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// RUN: %libomptarget-compilexx-run-and-check-generic
// RUN: %libomptarget-compile-run-and-check-generic

// REQUIRES: libc
//
// FIXME: https://github.com/llvm/llvm-project/issues/161265
// XFAIL: gpu

#include <omp.h>
#include <stdio.h>
Expand Down
8 changes: 4 additions & 4 deletions offload/test/offloading/CUDA/basic_launch_multi_arg.cu
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
// RUN: %t | %fcheck-generic
// clang-format on

// UNSUPPORTED: aarch64-unknown-linux-gnu
// UNSUPPORTED: aarch64-unknown-linux-gnu-LTO
// UNSUPPORTED: x86_64-unknown-linux-gnu
// UNSUPPORTED: x86_64-unknown-linux-gnu-LTO
// REQUIRES: gpu
//
// FIXME: https://github.com/llvm/llvm-project/issues/161265
// XFAIL: gpu

#include <stdio.h>

Expand Down
5 changes: 4 additions & 1 deletion offload/test/offloading/bug51781.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
// the generic state machine.
//
// RUN: %libomptarget-compile-generic -O2 -foffload-lto -Rpass=openmp-opt \
// RUN: -Xoffload-linker -mllvm=-openmp-opt-disable-spmdization \
// RUN: -mllvm -openmp-opt-disable-spmdization > %t.custom 2>&1
// RUN: %fcheck-nvptx64-nvidia-cuda -check-prefix=CUSTOM -input-file=%t.custom
// RUN: %fcheck-amdgcn-amd-amdhsa -check-prefix=CUSTOM -input-file=%t.custom
Expand All @@ -24,7 +25,9 @@
// Repeat with reduction clause, which has managed to break the custom state
// machine in the past.
//
// RUN: %libomptarget-compile-generic -O2 -foffload-lto -Rpass=openmp-opt -DADD_REDUCTION \
// RUN: %libomptarget-compile-generic -O2 -foffload-lto -Rpass=openmp-opt \
// RUN: -DADD_REDUCTION \
// RUN: -Xoffload-linker -mllvm=-openmp-opt-disable-spmdization \
// RUN: -mllvm -openmp-opt-disable-spmdization > %t.custom 2>&1
// RUN: %fcheck-nvptx64-nvidia-cuda -check-prefix=CUSTOM -input-file=%t.custom
// RUN: %fcheck-amdgcn-amd-amdhsa -check-prefix=CUSTOM -input-file=%t.custom
Expand Down
3 changes: 3 additions & 0 deletions offload/test/offloading/fortran/declare-target-automap.f90
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
!Offloading test for AUTOMAP modifier in declare target enter
! REQUIRES: flang, amdgpu

! FIXME: https://github.com/llvm/llvm-project/issues/161265
! XFAIL: amdgpu

! RUN: %libomptarget-compile-fortran-run-and-check-generic
program automap_program
use iso_c_binding, only: c_loc
Expand Down
3 changes: 2 additions & 1 deletion offload/test/offloading/interop.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// RUN: %libomptarget-compile-run-and-check-generic
// REQUIRES: nvptx64-nvidia-cuda

// XFAIL: *

#include <assert.h>
#include <omp.h>
Expand Down
3 changes: 3 additions & 0 deletions offload/test/offloading/single_threaded_for_barrier_hang_1.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// RUN: %libomptarget-compile-run-and-check-generic
// RUN: %libomptarget-compileopt-run-and-check-generic

// FIXME: https://github.com/llvm/llvm-project/issues/161265
// UNSUPPORTED: gpu

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

Expand Down
5 changes: 3 additions & 2 deletions offload/test/offloading/single_threaded_for_barrier_hang_2.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// RUN: %libomptarget-compile-run-and-check-generic
// FIXME: This fails with optimization enabled and prints b: 0
// FIXME: RUN: %libomptarget-compileopt-run-and-check-generic

// FIXME: https://github.com/llvm/llvm-project/issues/161265
// UNSUPPORTED: gpu

#include <omp.h>
#include <stdio.h>
Expand Down
3 changes: 2 additions & 1 deletion offload/test/offloading/spmdization.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// RUN: %libomptarget-compileopt-generic
// RUN: env LIBOMPTARGET_INFO=16 \
// RUN: %libomptarget-run-generic 2>&1 | %fcheck-generic --check-prefixes=CHECK,SPMD
// RUN: %libomptarget-compileopt-generic -mllvm --openmp-opt-disable-spmdization
// RUN: %libomptarget-compileopt-generic -mllvm --openmp-opt-disable-spmdization \
// RUN: -Xoffload-linker -mllvm=--openmp-opt-disable-spmdization
// RUN: env LIBOMPTARGET_INFO=16 \
// RUN: %libomptarget-run-generic 2>&1 | %fcheck-generic --check-prefixes=CHECK,GENERIC
// clang-format on
Expand Down
10 changes: 4 additions & 6 deletions offload/test/sanitizer/ptr_outside_alloc_1.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
// RUN: %not --crash env -u LLVM_DISABLE_SYMBOLIZATION OFFLOAD_TRACK_ALLOCATION_TRACES=1 %libomptarget-run-generic 2>&1 | %fcheck-generic --check-prefixes=CHECK,TRACE
// clang-format on

// UNSUPPORTED: aarch64-unknown-linux-gnu
// UNSUPPORTED: aarch64-unknown-linux-gnu-LTO
// UNSUPPORTED: x86_64-unknown-linux-gnu
// UNSUPPORTED: x86_64-unknown-linux-gnu-LTO
// UNSUPPORTED: s390x-ibm-linux-gnu
// UNSUPPORTED: s390x-ibm-linux-gnu-LTO
// FIXME: https://github.com/llvm/llvm-project/issues/161265
// UNSUPPORTED: nvidiagpu
//
// REQUIRES: gpu

#include <omp.h>

Expand Down
10 changes: 4 additions & 6 deletions offload/test/sanitizer/ptr_outside_alloc_2.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
// RUN: %not --crash env -u LLVM_DISABLE_SYMBOLIZATION OFFLOAD_TRACK_ALLOCATION_TRACES=1 %libomptarget-run-generic 2>&1 | %fcheck-generic --check-prefixes=CHECK
// clang-format on

// UNSUPPORTED: aarch64-unknown-linux-gnu
// UNSUPPORTED: aarch64-unknown-linux-gnu-LTO
// UNSUPPORTED: x86_64-unknown-linux-gnu
// UNSUPPORTED: x86_64-unknown-linux-gnu-LTO
// UNSUPPORTED: s390x-ibm-linux-gnu
// UNSUPPORTED: s390x-ibm-linux-gnu-LTO
// FIXME: https://github.com/llvm/llvm-project/issues/161265
// UNSUPPORTED: nvidiagpu
//
// REQUIRES: gpu

#include <omp.h>

Expand Down
10 changes: 4 additions & 6 deletions offload/test/sanitizer/use_after_free_1.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
// RUN: %not --crash env -u LLVM_DISABLE_SYMBOLIZATION OFFLOAD_TRACK_ALLOCATION_TRACES=1 %libomptarget-run-generic 2>&1 | %fcheck-generic --check-prefixes=CHECK,TRACE
// clang-format on

// UNSUPPORTED: aarch64-unknown-linux-gnu
// UNSUPPORTED: aarch64-unknown-linux-gnu-LTO
// UNSUPPORTED: x86_64-unknown-linux-gnu
// UNSUPPORTED: x86_64-unknown-linux-gnu-LTO
// UNSUPPORTED: s390x-ibm-linux-gnu
// UNSUPPORTED: s390x-ibm-linux-gnu-LTO
// FIXME: https://github.com/llvm/llvm-project/issues/161265
// UNSUPPORTED: nvidiagpu
//
// REQUIRES: gpu

#include <omp.h>

Expand Down
10 changes: 4 additions & 6 deletions offload/test/sanitizer/use_after_free_2.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
// RUN: %not --crash env -u LLVM_DISABLE_SYMBOLIZATION OFFLOAD_TRACK_ALLOCATION_TRACES=1 %libomptarget-run-generic 2>&1 | %fcheck-generic --check-prefixes=CHECK
// clang-format on

// UNSUPPORTED: aarch64-unknown-linux-gnu
// UNSUPPORTED: aarch64-unknown-linux-gnu-LTO
// UNSUPPORTED: x86_64-unknown-linux-gnu
// UNSUPPORTED: x86_64-unknown-linux-gnu-LTO
// UNSUPPORTED: s390x-ibm-linux-gnu
// UNSUPPORTED: s390x-ibm-linux-gnu-LTO
// FIXME: https://github.com/llvm/llvm-project/issues/161265
// UNSUPPORTED: nvidiagpu
//
// REQUIRES: gpu

// If offload memory pooling is enabled for a large allocation, reuse error is
// not detected. UNSUPPORTED: large_allocation_memory_pool
Expand Down
Loading