This repository was archived by the owner on Mar 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +17
-6
lines changed Expand file tree Collapse file tree 5 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 1
- // REQUIRES: cpu, linux
2
- // RUN: %clangxx -DSYCL_FALLBACK_ASSERT=1 -fsycl %s -o %t.out
1
+ // REQUIRES: ( cpu || cuda ) && linux
2
+ // RUN: %clangxx -DSYCL_FALLBACK_ASSERT=1 -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
3
3
// (see the other RUN lines below; it is a bit complicated)
4
4
//
5
5
// assert() call in device code guarantees nothing: on some devices it behaves
72
72
// Overall this sounds stable enough. What could possibly go wrong?
73
73
//
74
74
// RUN: %CPU_RUN_PLACEHOLDER env SYCL_PI_TRACE=2 SHOULD_CRASH=1 EXPECTED_SIGNAL=SIGABRT %t.out 2>%t.stderr.native
75
+ // RUN: %GPU_RUN_PLACEHOLDER env SHOULD_CRASH=1 EXPECTED_SIGNAL=SIGIOT %t.out 2>%t.stderr.native
75
76
// RUN: FileCheck %s --input-file %t.stderr.native --check-prefixes=CHECK-MESSAGE || FileCheck %s --input-file %t.stderr.native --check-prefix CHECK-NOTSUPPORTED
76
77
//
77
78
// Skip the test if the CPU RT doesn't support the extension yet:
@@ -181,6 +182,8 @@ int main() {
181
182
expected = SIGABRT;
182
183
} else if (0 == strcmp (env, " SIGSEGV" )) {
183
184
expected = SIGSEGV;
185
+ } else if (0 == strcmp (env, " SIGIOT" )) {
186
+ expected = SIGIOT;
184
187
}
185
188
if (!expected) {
186
189
fprintf (stderr, " EXPECTED_SIGNAL should be set to either \" SIGABRT\" , "
Original file line number Diff line number Diff line change 1
- // RUN: %clangxx -fsycl -fno-builtin %s -o %t.out
1
+ // UNSUPPORTED: hip
2
+ // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -fno-builtin %s -o %t.out
2
3
// RUN: %HOST_RUN_PLACEHOLDER %t.out
3
4
// RUN: %CPU_RUN_PLACEHOLDER %t.out
5
+ // RUN: %GPU_RUN_PLACEHOLDER %t.out
4
6
// RUN: %ACC_RUN_PLACEHOLDER %t.out
5
7
6
8
// RUN: %clangxx -fsycl -fno-builtin -fsycl-device-lib-jit-link %s -o %t.out
Original file line number Diff line number Diff line change 1
- // RUN: %clangxx -fsycl %s -o %t.out
1
+ // UNSUPPORTED: hip
2
+ // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2
3
// RUN: %HOST_RUN_PLACEHOLDER %t.out
3
4
// RUN: %CPU_RUN_PLACEHOLDER %t.out
5
+ // RUN: %GPU_RUN_PLACEHOLDER %t.out
4
6
// RUN: %ACC_RUN_PLACEHOLDER %t.out
5
7
6
8
// RUN: %clangxx -fsycl -fsycl-device-lib-jit-link %s -o %t.out
Original file line number Diff line number Diff line change 1
- // RUN: %clangxx -fsycl %s -o %t.out
1
+ // UNSUPPORTED: hip
2
+ // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2
3
// RUN: %HOST_RUN_PLACEHOLDER %t.out
3
4
// RUN: %CPU_RUN_PLACEHOLDER %t.out
5
+ // RUN: %GPU_RUN_PLACEHOLDER %t.out
4
6
// RUN: %ACC_RUN_PLACEHOLDER %t.out
5
7
6
8
// RUN: %clangxx -fsycl -fsycl-device-lib-jit-link %s -o %t.out
Original file line number Diff line number Diff line change 1
- // RUN: %clangxx -fsycl -fno-builtin %s -o %t.out
1
+ // UNSUPPORTED: hip
2
+ // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -fno-builtin %s -o %t.out
2
3
// RUN: %HOST_RUN_PLACEHOLDER %t.out
3
4
// RUN: %CPU_RUN_PLACEHOLDER %t.out
5
+ // RUN: %GPU_RUN_PLACEHOLDER %t.out
4
6
// RUN: %ACC_RUN_PLACEHOLDER %t.out
5
7
6
8
// RUN: %clangxx -fsycl -fno-builtin -fsycl-device-lib-jit-link %s -o %t.out
You can’t perform that action at this time.
0 commit comments