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

Commit 92972e7

Browse files
[SYCL] Remove host run and dependencies from SYCL/DotProduct tests (#1205)
This commit removes the host run and any assumptions and operations related to the host device from the tests in SYCL/DotProduct. Signed-off-by: Larsen, Steffen <[email protected]> Co-authored-by: Sachkov, Alexey <[email protected]>
1 parent 332118a commit 92972e7

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

SYCL/DotProduct/dot_product_int_test.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// For now we only check fallback support because DG1 hardware is not widespread
33

44
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
5-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
65
// RUN: %CPU_RUN_PLACEHOLDER %t.out
76
// RUN: %GPU_RUN_PLACEHOLDER %t.out
87
// RUN: %ACC_RUN_PLACEHOLDER %t.out
@@ -223,7 +222,7 @@ bool run_tests() {
223222
}
224223

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

@@ -234,7 +233,7 @@ int main(int argc, char *argv[]) {
234233
bool passed = true;
235234
default_selector selector{};
236235
auto D = selector.select_device();
237-
const char *devType = D.is_host() ? "Host" : D.is_cpu() ? "CPU" : "GPU";
236+
const char *devType = D.is_cpu() ? "CPU" : "GPU";
238237
std::cout << "Running on device " << devType << " ("
239238
<< D.get_info<sycl::info::device::name>() << ")\n";
240239
passed &= run_tests();

SYCL/DotProduct/dot_product_vec_test.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// For now we only check fallback support because DG1 hardware is not widespread
33

44
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
5-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
65
// RUN: %CPU_RUN_PLACEHOLDER %t.out
76
// RUN: %GPU_RUN_PLACEHOLDER %t.out
87
// RUN: %ACC_RUN_PLACEHOLDER %t.out
@@ -231,7 +230,7 @@ bool run_tests() {
231230
}
232231

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

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

0 commit comments

Comments
 (0)