Many tests in the `offload` project have requirements defined by which targets are not supported rather than which platforms are supported. This patch aims to streamline the requirement definitions by adding four new feature tags: `host`, `gpu`, `amdgpu`, and `nvidiagpu`.
19 lines
497 B
C
19 lines
497 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
|
|
// REQUIRES: gpu
|
|
|
|
#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"); }
|
|
}
|