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

[SYCL] Remove host run and dependencies from SYCL/InorderQueue tests #1212

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SYCL/InorderQueue/in_order_buffs_ocl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ int main() {
bool result = true;
cl_command_queue cq = get_native<backend::opencl>(Queue);
device dev = Queue.get_device();
bool expected_result = dev.is_host() ? true : isQueueInOrder(cq);
bool expected_result = isQueueInOrder(cq);

if (expected_result != result) {
std::cout << "Resulting queue order is OOO but expected order is inorder"
Expand Down
2 changes: 1 addition & 1 deletion SYCL/InorderQueue/in_order_dmemll_ocl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ int main() {

bool result = true;
cl_command_queue cq = sycl::get_native<backend::opencl>(q);
bool expected_result = dev.is_host() ? true : getQueueOrder(cq);
bool expected_result = getQueueOrder(cq);
if (expected_result != result) {
std::cout << "Resulting queue order is OOO but expected order is inorder"
<< std::endl;
Expand Down
1 change: 0 additions & 1 deletion SYCL/InorderQueue/in_order_event_release.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -fsycl-unnamed-lambda %s -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
Expand Down
1 change: 0 additions & 1 deletion SYCL/InorderQueue/in_order_get_property.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
Expand Down
1 change: 0 additions & 1 deletion SYCL/InorderQueue/in_order_kernels.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -fsycl-unnamed-lambda %s -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
Expand Down
4 changes: 2 additions & 2 deletions SYCL/InorderQueue/prop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ int CheckQueueOrder(const queue &q) {
auto dev = q.get_device();

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

expected_result = dev.is_host() ? true : q.is_in_order();
expected_result = q.is_in_order();
if (!expected_result)
return -2;

Expand Down