Skip to content

Commit

Permalink
[SYCL][Graph] Fixes a unitest bug introduced during the fork update (#…
Browse files Browse the repository at this point in the history
…320)

Co-authored-by: Pablo Reble <pablo.reble@intel.com>
  • Loading branch information
mfrancepillois and reble authored Sep 11, 2023
1 parent d79b04a commit 20c6b22
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sycl/unittests/Extensions/CommandGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1953,12 +1953,14 @@ TEST_F(MultiThreadGraphTest, BeginEndRecording) {

for (unsigned i = 0; i < NumThreads; ++i) {
queue MyQueue{Queue.get_context(), Queue.get_device()};
GraphRef.begin_recording(MyQueue);
runKernels(MyQueue);
GraphRef.end_recording(MyQueue);

auto GraphImpl = sycl::detail::getSyclObjImpl(Graph);
auto GraphRefImpl = sycl::detail::getSyclObjImpl(GraphRef);
ASSERT_EQ(GraphImpl->hasSimilarStructure(GraphRefImpl), true);
}

auto GraphImpl = sycl::detail::getSyclObjImpl(Graph);
auto GraphRefImpl = sycl::detail::getSyclObjImpl(GraphRef);
ASSERT_EQ(GraphImpl->hasSimilarStructure(GraphRefImpl), true);
}

TEST_F(MultiThreadGraphTest, ExplicitAddNodes) {
Expand Down

0 comments on commit 20c6b22

Please sign in to comment.