Skip to content

Commit ea2dad3

Browse files
authored
[SYCL][Graph] Avoid overhead on queue recording query (intel#18427)
1 parent 66ad7ae commit ea2dad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/detail/queue_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ void queue_impl::wait(const detail::code_location &CodeLoc) {
611611
}
612612
#endif
613613

614-
if (MGraph.lock()) {
614+
if (!MGraph.expired()) {
615615
throw sycl::exception(make_error_code(errc::invalid),
616616
"wait cannot be called for a queue which is "
617617
"recording to a command graph.");

0 commit comments

Comments
 (0)