We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30fee1a commit 41b8929Copy full SHA for 41b8929
SYCL/Basic/stream/stream.cpp
@@ -24,12 +24,19 @@ int main() {
24
{
25
default_selector Selector;
26
queue Queue(Selector);
27
+ context Context = Queue.get_context();
28
29
// Check constructor and getters
30
Queue.submit([&](handler &CGH) {
- stream Out(1024, 80, CGH);
31
+ stream Out(1024, 80, CGH,
32
+ property_list{property::buffer::context_bound{Context}});
33
assert(Out.get_size() == 1024);
34
assert(Out.get_max_statement_size() == 80);
35
+ assert(Out.has_property<property::buffer::context_bound>());
36
+ assert(!Out.has_property<property::queue::in_order>());
37
+ assert(
38
+ Out.get_property<property::buffer::context_bound>().get_context() ==
39
+ Context);
40
41
CGH.single_task<class DummyTask1>([=]() {});
42
});
0 commit comments