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

Commit 8244a68

Browse files
committed
Revert subdevice.cpp and subsubdevice.cpp
Signed-off-by: Larsen, Steffen <[email protected]>
1 parent f60da06 commit 8244a68

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

SYCL/Basic/subdevice.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2+
// RUN: %HOST_RUN_PLACEHOLDER %t.out
23
// RUN: %CPU_RUN_PLACEHOLDER %t.out
34
// RUN: %GPU_RUN_PLACEHOLDER %t.out
45
// RUN: %ACC_RUN_PLACEHOLDER %t.out
@@ -24,6 +25,10 @@ int main() {
2425
try {
2526
auto devices = device::get_devices();
2627
for (const auto &dev : devices) {
28+
// TODO: implement subdevices creation for host device
29+
if (dev.is_host())
30+
continue;
31+
2732
assert(dev.get_info<info::device::partition_type_property>() ==
2833
info::partition_property::no_partition);
2934

SYCL/Basic/subsubdevice.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2+
// RUN: %HOST_RUN_PLACEHOLDER %t.out
23
// RUN: %CPU_RUN_PLACEHOLDER %t.out
34
// RUN: %GPU_RUN_PLACEHOLDER %t.out
45
// RUN: %ACC_RUN_PLACEHOLDER %t.out
@@ -24,6 +25,10 @@ int main() {
2425
try {
2526
auto devices = device::get_devices();
2627
for (const auto &dev : devices) {
28+
// TODO: implement subdevices creation for host device
29+
if (dev.is_host())
30+
continue;
31+
2732
assert(dev.get_info<info::device::partition_type_property>() ==
2833
info::partition_property::no_partition);
2934

0 commit comments

Comments
 (0)