|
1 | 1 | // REQUIRES: windows |
| 2 | +// UNSUPPORTED: cuda || hip |
2 | 3 | // RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -fsycl -fsycl-targets=%sycl_triple %s -o %t.out |
3 | 4 | // RUN: %CPU_RUN_PLACEHOLDER %t.out &> %t.txt || true |
4 | 5 | // RUN: %CPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt |
5 | 6 | // RUN: %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true |
6 | 7 | // RUN: %GPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt |
7 | | -// RUN: %ACC_RUN_PLACEHOLDER %t.out &> %t.txt || true |
8 | | -// RUN: %ACC_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt |
| 8 | +// Shouldn't fail on ACC as fallback assert isn't enqueued there |
| 9 | +// RUN: %ACC_RUN_PLACEHOLDER %t.out &> %t.txt |
| 10 | +// RUN: %ACC_RUN_PLACEHOLDER FileCheck %s --check-prefix=CHECK-ACC --input-file %t.txt |
9 | 11 | // |
10 | 12 | // CHECK-NOT: One shouldn't see this message |
11 | | -// FIXME Windows versionprints '(null)' instead of '<unknown func>' once in a |
| 13 | +// FIXME Windows version prints '(null)' instead of '<unknown func>' once in a |
12 | 14 | // while for some insane reason. |
13 | 15 | // CHECK: {{.*}}assert_in_kernels.hpp:26: {{<unknown func>|(null)}}: global id: [{{[0,2]}},0,0], local id: [0,0,0] |
14 | 16 | // CHECK-SAME: Assertion `Buf[wiID] == 0 && "from assert statement"` failed. |
15 | 17 | // CHECK-NOT: test aborts earlier, one shouldn't see this message |
16 | 18 | // CHECK-NOT: The test ended. |
| 19 | +// |
| 20 | +// CHECK-ACC-NOT: {{.*}}assert_in_kernels.hpp:26: {{<unknown func>|(null)}}: global id: [{{[0,2]}},0,0], local id: [0,0,0] |
| 21 | +// CHECK-ACC: The test ended. |
17 | 22 |
|
18 | 23 | #include "assert_in_kernels.hpp" |
0 commit comments