We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66ad7ae commit ea2dad3Copy full SHA for ea2dad3
sycl/source/detail/queue_impl.cpp
@@ -611,7 +611,7 @@ void queue_impl::wait(const detail::code_location &CodeLoc) {
611
}
612
#endif
613
614
- if (MGraph.lock()) {
+ if (!MGraph.expired()) {
615
throw sycl::exception(make_error_code(errc::invalid),
616
"wait cannot be called for a queue which is "
617
"recording to a command graph.");
0 commit comments