| // clang-format off |
| // RUN: %libomptarget-compilexx-generic |
| // RUN: rm -rf %t.testdir |
| // RUN: mkdir -p %t.testdir |
| // RUN: env LIBOMPTARGET_RECORD=1 LIBOMPTARGET_RECORD_MEMSIZE=536870912 LIBOMPTARGET_RECORD_DIR=%t.testdir %libomptarget-run-generic 2>&1 | %fcheck-generic |
| // RUN: ls -t %t.testdir/*.json | sed -n '1p' | grep . | xargs -I {} %omp-kernel-replay --verify {} |
| // clang-format on |
| |
| // REQUIRES: gpu |
| |
| // UNSUPPORTED: aarch64-unknown-linux-gnu |
| // UNSUPPORTED: x86_64-unknown-linux-gnu |
| // UNSUPPORTED: s390x-ibm-linux-gnu |
| // UNSUPPORTED: intelgpu |
| |
| #include <cstdint> |
| #include <cstdio> |
| |
| int main() { |
| #pragma omp target teams num_teams(256) |
| { |
| } |
| |
| // CHECK: PASS |
| printf("PASS\n"); |
| } |