Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit aa4f185

Browse files
committed
Merge branch 'intel' into cperkins-update-device-selectors-in-tests
2 parents 2346253 + 47539d5 commit aa4f185

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+28
-96
lines changed

SYCL/AtomicRef/add_local.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP does not support floating point atomics.
7-
// XFAIL: hip
8-
96
#include "add.h"
107

118
int main() { add_test_all<access::address_space::local_space>(); }

SYCL/AtomicRef/device_has_aspect_atomic64_level_zero.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// REQUIRES: level_zero, level_zero_dev_kit
1+
// REQUIRES: level_zero, level_zero_dev_kit, TEMPORARY_DISABLED
22
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out %level_zero_options
33
// RUN: %GPU_RUN_PLACEHOLDER %t.out
44

SYCL/AtomicRef/min_local.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP does not support floating point atomics.
7-
// XFAIL: hip
8-
96
#include "min.h"
107

118
int main() { min_test_all<access::address_space::local_space>(); }

SYCL/AtomicRef/sub_local.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55

6-
// HIP does not support floating point atomics.
7-
// XFAIL: hip
8-
96
#include "sub.h"
107

118
int main() { sub_test_all<access::address_space::local_space>(); }

SYCL/DeviceGlobal/device_global_arrow.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
// RUN: %GPU_RUN_PLACEHOLDER %t_dev_img_scope.out
1212
// RUN: %ACC_RUN_PLACEHOLDER %t_dev_img_scope.out
1313
//
14-
// Currently fails for CPUs due to missing support for the SPIR-V extension.
15-
// Currently crashes on accelerators.
16-
// XFAIL: cpu, accelerator
14+
// CPU and accelerators are not currently guaranteed to support the required
15+
// extensions they are disabled until they are.
16+
// UNSUPPORTED: cpu, accelerator
1717
//
1818
// Tests operator-> on device_global.
1919
// NOTE: USE_DEVICE_IMAGE_SCOPE needs both kernels to be in the same image so

SYCL/DeviceGlobal/device_global_device_only.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
// RUN: %GPU_RUN_PLACEHOLDER %t_dev_img_scope.out
1212
// RUN: %ACC_RUN_PLACEHOLDER %t_dev_img_scope.out
1313
//
14-
// Currently fails for CPUs due to missing support for the SPIR-V extension.
15-
// Currently crashes on accelerators.
16-
// XFAIL: cpu, accelerator
14+
// CPU and accelerators are not currently guaranteed to support the required
15+
// extensions they are disabled until they are.
16+
// UNSUPPORTED: cpu, accelerator
1717
//
1818
// Tests basic device_global access through device kernels.
1919
// NOTE: USE_DEVICE_IMAGE_SCOPE needs both kernels to be in the same image so

SYCL/DeviceGlobal/device_global_operator_passthrough.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
// RUN: %GPU_RUN_PLACEHOLDER %t_dev_img_scope.out
1212
// RUN: %ACC_RUN_PLACEHOLDER %t_dev_img_scope.out
1313
//
14-
// Currently fails for CPUs due to missing support for the SPIR-V extension.
15-
// Currently crashes on accelerators.
16-
// XFAIL: cpu, accelerator
14+
// CPU and accelerators are not currently guaranteed to support the required
15+
// extensions they are disabled until they are.
16+
// UNSUPPORTED: cpu, accelerator
1717
//
1818
// Tests the passthrough of operators on device_global.
1919
// NOTE: USE_DEVICE_IMAGE_SCOPE needs both kernels to be in the same image so

SYCL/DeviceGlobal/device_global_subscript.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
// RUN: %GPU_RUN_PLACEHOLDER %t_dev_img_scope.out
1212
// RUN: %ACC_RUN_PLACEHOLDER %t_dev_img_scope.out
1313
//
14-
// Currently fails for CPUs due to missing support for the SPIR-V extension.
15-
// Currently crashes on accelerators.
16-
// XFAIL: cpu, accelerator
14+
// CPU and accelerators are not currently guaranteed to support the required
15+
// extensions they are disabled until they are.
16+
// UNSUPPORTED: cpu, accelerator
1717
//
1818
// Tests operator[] on device_global.
1919
// NOTE: USE_DEVICE_IMAGE_SCOPE needs both kernels to be in the same image so

SYCL/Scheduler/HostAccDestruction.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// RUN: %clangxx -fsycl -fsycl-dead-args-optimization %s -o %t.out
1+
// RUN: %clangxx -fsycl -fsycl-dead-args-optimization -fsycl-targets=%sycl_triple %s -o %t.out
22
// RUN: env SYCL_PI_TRACE=2 %CPU_RUN_PLACEHOLDER %t.out 2>&1 %CPU_CHECK_PLACEHOLDER
33
// RUN: env SYCL_PI_TRACE=2 %GPU_RUN_PLACEHOLDER %t.out 2>&1 %GPU_CHECK_PLACEHOLDER
44
// RUN: env SYCL_PI_TRACE=2 %ACC_RUN_PLACEHOLDER %t.out 2>&1 %ACC_CHECK_PLACEHOLDER
5-
// UNSUPPORTED: cuda || hip
5+
// UNSUPPORTED: hip
66
//==---------------------- HostAccDestruction.cpp --------------------------==//
77
//
88
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

SYCL/USM/alloc_functions.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/allocator_container.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/allocator_equal.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/allocator_rebind.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/allocator_shared.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/allocator_vector.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/badmalloc.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// UNSUPPORTED: windows
22
//
33
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
4-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
54
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
65
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
76
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/buffer_location.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %ACC_RUN_PLACEHOLDER %t1.out
54

SYCL/USM/copy.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//===----------------------------------------------------------------------===//
88
//
99
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
10-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
1110
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
1211
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
1312
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/dep_events.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// UNSUPPORTED: cuda && windows
1212
//
1313
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
14-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
1514
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
1615
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
1716
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/depends_on.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/dmem_varied.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/dmemll.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/dmemllaligned.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/fill.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//===----------------------------------------------------------------------===//
88
//
99
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
10-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
1110
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
1211
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
1312
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/free_during_kernel_execution.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//===----------------------------------------------------------------------===//
88
//
99
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
10-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
1110
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
1211
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
1312
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/hmemll.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/hmemllaligned.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/math.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t.out
43

54
// REQUIRES: cpu

SYCL/USM/memadvise.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/memadvise_cuda.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
22
// REQUIRES: cuda
3-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
43
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
65
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/memcpy.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//===----------------------------------------------------------------------===//
88
//
99
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
10-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
1110
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
1211
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
1312
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/memset.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/mixed.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/mixed2.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/mixed2template.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/mixed_queue.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/pfor_flatten.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -fsycl-unnamed-lambda -fsycl-dead-args-optimization %s -o %t1.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/pfor_flatten_range_shortcut.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -fsycl-unnamed-lambda %s -o %t1.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/pointer_query.cpp

Lines changed: 12 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl %s -o %t1.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t1.out
@@ -36,16 +35,8 @@ int main() {
3635
return 1;
3736
}
3837
Kind = get_pointer_type(array, ctxt);
39-
if (ctxt.is_host()) {
40-
// for now, host device treats all allocations
41-
// as host allocations
42-
if (Kind != usm::alloc::host) {
43-
return 2;
44-
}
45-
} else {
46-
if (Kind != usm::alloc::device) {
47-
return 3;
48-
}
38+
if (Kind != usm::alloc::device) {
39+
return 3;
4940
}
5041
device D = get_pointer_device(array, ctxt);
5142
if (D != dev) {
@@ -59,16 +50,8 @@ int main() {
5950
return 5;
6051
}
6152
Kind = get_pointer_type(array, ctxt);
62-
if (ctxt.is_host()) {
63-
// for now, host device treats all allocations
64-
// as host allocations
65-
if (Kind != usm::alloc::host) {
66-
return 6;
67-
}
68-
} else {
69-
if (Kind != usm::alloc::shared) {
70-
return 7;
71-
}
53+
if (Kind != usm::alloc::shared) {
54+
return 7;
7255
}
7356
D = get_pointer_device(array, ctxt);
7457
if (D != dev) {
@@ -103,22 +86,15 @@ int main() {
10386
// next checks only valid for non-host contexts
10487
array = (int *)malloc(N * sizeof(int));
10588
Kind = get_pointer_type(array, ctxt);
106-
if (!ctxt.is_host()) {
107-
if (Kind != usm::alloc::unknown) {
108-
return 12;
109-
}
110-
try {
111-
D = get_pointer_device(array, ctxt);
112-
} catch (runtime_error) {
113-
return 0;
114-
}
115-
return 13;
116-
} else {
117-
// host ctxts always report host
118-
if (Kind != usm::alloc::host) {
119-
return 14;
120-
}
89+
if (Kind != usm::alloc::unknown) {
90+
return 12;
91+
}
92+
try {
93+
D = get_pointer_device(array, ctxt);
94+
} catch (runtime_error) {
95+
return 0;
12196
}
97+
return 13;
12298
free(array);
12399

124100
return 0;

SYCL/USM/prefetch.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// UNSUPPORTED: cuda && windows
1212
//
1313
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
14-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
1514
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
1615
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
1716
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/queue_wait.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t.out

SYCL/USM/smem_concurrent.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/smem_varied.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out -DTEST_SHARED
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/smemll.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

SYCL/USM/smemllaligned.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t1.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t1.out

0 commit comments

Comments
 (0)