Summary: This patch is an attempt to get a clean run of `check-openmp` running on an NVPTX machine. I simply took the lists of tests that failed on my `sm_89` machine and disabled them or fixed them. A lot of these tests are disabled on AMDGPU already, so it makes sense that NVPTX fails. The others are simply problems with NVPTX optimized debugging which will need to be fixed. I opened an issue on one of them.
24 lines
728 B
C
24 lines
728 B
C
// RUN: %libomptarget-compile-generic && %libomptarget-run-fail-generic 2>&1 | \
|
|
// RUN: %fcheck-generic --check-prefix=CHECK
|
|
|
|
// REQUIRES: libc
|
|
|
|
// NVPTX without LTO uses the implementation in OpenMP currently.
|
|
// UNSUPPORTED: nvptx64-nvidia-cuda
|
|
// UNSUPPORTED: powerpc64-ibm-linux-gnu
|
|
// UNSUPPORTED: powerpc64-ibm-linux-gnu-LTO
|
|
// UNSUPPORTED: aarch64-unknown-linux-gnu
|
|
// UNSUPPORTED: aarch64-unknown-linux-gnu-LTO
|
|
// UNSUPPORTED: x86_64-pc-linux-gnu
|
|
// UNSUPPORTED: x86_64-pc-linux-gnu-LTO
|
|
|
|
#include <assert.h>
|
|
|
|
int main() {
|
|
// CHECK: Assertion failed: '0 && "Trivial failure"' in function: 'int main()'
|
|
// CHECK-NOT: Assertion failed:
|
|
#pragma omp target
|
|
#pragma omp parallel
|
|
{ assert(0 && "Trivial failure"); }
|
|
}
|