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/DotProduct tests #1205

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
5 changes: 2 additions & 3 deletions SYCL/DotProduct/dot_product_int_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// For now we only check fallback support because DG1 hardware is not widespread

// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
Expand Down Expand Up @@ -223,7 +222,7 @@ bool run_tests() {
}

auto D = Q.get_device();
const char *devType = D.is_host() ? "Host" : D.is_cpu() ? "CPU" : "GPU";
const char *devType = D.is_cpu() ? "CPU" : "GPU";
std::cout << passCount << " of " << testCount << " tests passed on "
<< devType << "\n";

Expand All @@ -234,7 +233,7 @@ int main(int argc, char *argv[]) {
bool passed = true;
default_selector selector{};
auto D = selector.select_device();
const char *devType = D.is_host() ? "Host" : D.is_cpu() ? "CPU" : "GPU";
const char *devType = D.is_cpu() ? "CPU" : "GPU";
std::cout << "Running on device " << devType << " ("
<< D.get_info<sycl::info::device::name>() << ")\n";
passed &= run_tests();
Expand Down
5 changes: 2 additions & 3 deletions SYCL/DotProduct/dot_product_vec_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// For now we only check fallback support because DG1 hardware is not widespread

// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
Expand Down Expand Up @@ -231,7 +230,7 @@ bool run_tests() {
}

auto D = Q.get_device();
const char *devType = D.is_host() ? "Host" : D.is_cpu() ? "CPU" : "GPU";
const char *devType = D.is_cpu() ? "CPU" : "GPU";
std::cout << passCount << " of " << testCount << " tests passed on "
<< devType << "\n";

Expand All @@ -242,7 +241,7 @@ int main(int argc, char *argv[]) {
bool passed = true;
default_selector selector{};
auto D = selector.select_device();
const char *devType = D.is_host() ? "Host" : D.is_cpu() ? "CPU" : "GPU";
const char *devType = D.is_cpu() ? "CPU" : "GPU";
std::cout << "Running on device " << devType << " ("
<< D.get_info<sycl::info::device::name>() << ")\n";
try {
Expand Down