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

Commit 20f514b

Browse files
[SYCL] Remove host run and dependencies from SYCL/InorderQueue tests (#1212)
This commit removes the host run and any assumptions and operations related to the host device from the tests in SYCL/InorderQueue. Co-authored-by: Sachkov, Alexey <[email protected]> Signed-off-by: Larsen, Steffen <[email protected]>
1 parent 4ce1459 commit 20f514b

File tree

6 files changed

+4
-7
lines changed

6 files changed

+4
-7
lines changed

SYCL/InorderQueue/in_order_buffs_ocl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ int main() {
3636
bool result = true;
3737
cl_command_queue cq = get_native<backend::opencl>(Queue);
3838
device dev = Queue.get_device();
39-
bool expected_result = dev.is_host() ? true : isQueueInOrder(cq);
39+
bool expected_result = isQueueInOrder(cq);
4040

4141
if (expected_result != result) {
4242
std::cout << "Resulting queue order is OOO but expected order is inorder"

SYCL/InorderQueue/in_order_dmemll_ocl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ int main() {
3636

3737
bool result = true;
3838
cl_command_queue cq = sycl::get_native<backend::opencl>(q);
39-
bool expected_result = dev.is_host() ? true : getQueueOrder(cq);
39+
bool expected_result = getQueueOrder(cq);
4040
if (expected_result != result) {
4141
std::cout << "Resulting queue order is OOO but expected order is inorder"
4242
<< std::endl;

SYCL/InorderQueue/in_order_event_release.cpp

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

SYCL/InorderQueue/in_order_get_property.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: %ACC_RUN_PLACEHOLDER %t.out
43
// RUN: %CPU_RUN_PLACEHOLDER %t.out
54
// RUN: %GPU_RUN_PLACEHOLDER %t.out

SYCL/InorderQueue/in_order_kernels.cpp

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

SYCL/InorderQueue/prop.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ int CheckQueueOrder(const queue &q) {
3434
auto dev = q.get_device();
3535

3636
cl_command_queue cq = get_native<backend::opencl>(q);
37-
bool expected_result = dev.is_host() ? true : getQueueOrder(cq);
37+
bool expected_result = getQueueOrder(cq);
3838
if (!expected_result)
3939
return -1;
4040

41-
expected_result = dev.is_host() ? true : q.is_in_order();
41+
expected_result = q.is_in_order();
4242
if (!expected_result)
4343
return -2;
4444

0 commit comments

Comments
 (0)