Skip to content

Commit ea2dad3

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)