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

Commit f128bec

Browse files
committed
use default device selector
Signed-off-by: Sergey V Maslov <[email protected]>
1 parent e9f1c5c commit f128bec

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

SYCL/Basic/submit_barrier.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
1+
// RUN: %clangxx -fsycl %s -o %t.out
22
// RUN: %HOST_RUN_PLACEHOLDER %t.out
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
@@ -7,9 +7,13 @@
77
#include <stdlib.h>
88

99
int main() {
10-
cl::sycl::device dev;
10+
11+
cl::sycl::device dev{cl::sycl::default_selector{}};
1112
cl::sycl::queue q{dev};
1213

14+
q.submit(
15+
[&](sycl::handler &cgh) { cgh.single_task<class kernel1>([]() {}); });
16+
1317
cl::sycl::event e = q.submit_barrier();
1418
e.wait_and_throw();
1519

0 commit comments

Comments
 (0)