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

Commit e9f1c5c

Browse files
committed
[SYCL] test for barrier submission: intel/llvm#3045
Signed-off-by: Sergey V Maslov <[email protected]>
1 parent e2ea274 commit e9f1c5c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

SYCL/Basic/submit_barrier.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2+
// RUN: %HOST_RUN_PLACEHOLDER %t.out
3+
// RUN: %CPU_RUN_PLACEHOLDER %t.out
4+
// RUN: %GPU_RUN_PLACEHOLDER %t.out
5+
6+
#include <CL/sycl.hpp>
7+
#include <stdlib.h>
8+
9+
int main() {
10+
cl::sycl::device dev;
11+
cl::sycl::queue q{dev};
12+
13+
cl::sycl::event e = q.submit_barrier();
14+
e.wait_and_throw();
15+
16+
return 0;
17+
}

0 commit comments

Comments
 (0)