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 c91cdab commit 404208bCopy full SHA for 404208b
sycl/test/host-interop-task/interop-task.cpp
@@ -180,9 +180,24 @@ void test3() {
180
});
181
}
182
183
+// Check that a single host-interop-task with a buffer will work
184
+void test4() {
185
+ buffer<int, 1> Buffer{BUFFER_SIZE};
186
+
187
+ queue Q;
188
189
+ Q.submit([&](handler &CGH) {
190
+ auto Acc = Buffer.get_access<mode::write>(CGH);
191
+ CGH.codeplay_host_task([=](interop_handle IH) {
192
+ // A no-op
193
+ });
194
195
+}
196
197
int main() {
198
test1();
199
test2();
200
test3();
201
+ test4();
202
return 0;
203
0 commit comments