You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// expected-error-re@CL/sycl/queue.hpp:691 {{static_assert failed due to requirement '{{.*}}' "sycl::queue.single_task() requires a kernel instead of command group.{{.*}} Use queue.submit() instead"}}
14
+
// expected-error-re@CL/sycl/detail/cg_types.hpp:191 {{no matching function for call to object of type '(lambda at {{.*}}single_task_error_message.cpp:{{.*}})'}}
15
+
})
16
+
.wait();
17
+
}
18
+
}
19
+
{
20
+
int varA = 42;
21
+
int varB = 42;
22
+
int sum = 0;
23
+
sycl::queue myQueue{};
24
+
{
25
+
sycl::event e{};
26
+
myQueue
27
+
.single_task(e,
28
+
[&](sycl::handler &cgh) {
29
+
// expected-error-re@CL/sycl/queue.hpp:714 {{static_assert failed due to requirement '{{.*}}' "sycl::queue.single_task() requires a kernel instead of command group.{{.*}} Use queue.submit() instead"}}
30
+
// expected-error-re@CL/sycl/detail/cg_types.hpp:191 {{no matching function for call to object of type '(lambda at {{.*}}single_task_error_message.cpp:{{.*}})'}}
31
+
})
32
+
.wait();
33
+
}
34
+
}
35
+
{
36
+
int varA = 42;
37
+
int varB = 42;
38
+
int sum = 0;
39
+
sycl::queue myQueue{};
40
+
{
41
+
std::vector<sycl::event> vector_event;
42
+
myQueue
43
+
.single_task(vector_event,
44
+
[&](sycl::handler &cgh) {
45
+
// expected-error-re@CL/sycl/queue.hpp:739 {{static_assert failed due to requirement '{{.*}}' "sycl::queue.single_task() requires a kernel instead of command group.{{.*}} Use queue.submit() instead"}}
46
+
// expected-error-re@CL/sycl/detail/cg_types.hpp:191 {{no matching function for call to object of type '(lambda at {{.*}}single_task_error_message.cpp:{{.*}})'}}
0 commit comments