Skip to content

Commit 404208b

Browse files
author
Sergey Kanaev
committed
[SYCL] Add test
Signed-off-by: Sergey Kanaev <[email protected]>
1 parent c91cdab commit 404208b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

sycl/test/host-interop-task/interop-task.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,24 @@ void test3() {
180180
});
181181
}
182182

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+
183197
int main() {
184198
test1();
185199
test2();
186200
test3();
201+
test4();
187202
return 0;
188203
}

0 commit comments

Comments
 (0)