Skip to content

Commit f3add79

Browse files
Simplify accessor/remove TODO
1 parent e10e6de commit f3add79

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

sycl/test-e2e/Basic/empty_command.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,8 @@ void test_accessor_dep() {
8787
a[0] = 42;
8888
});
8989
});
90-
auto empty_cg_event = q.submit([&](handler &cgh) {
91-
sycl::accessor a{b};
92-
// TODO: Clarify with spec people that it should create a dependency indeed.
93-
cgh.require(a);
94-
});
90+
auto empty_cg_event =
91+
q.submit([&](handler &cgh) { sycl::accessor a{b, cgh}; });
9592

9693
// FIXME: This should deadlock, but the dependency is ignored currently.
9794
empty_cg_event.wait();

0 commit comments

Comments
 (0)