File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
sycl/source/detail/scheduler Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 1414#include < detail/stream_impl.hpp>
1515
1616#include < chrono>
17- #include < iostream >
17+ #include < cstdio >
1818#include < memory>
1919#include < mutex>
2020#include < set>
@@ -294,12 +294,15 @@ Scheduler::~Scheduler() {
294294 // resources are released only if one of the listed sync points was used for
295295 // the kernel. Otherwise resources for stream will not be released, issue a
296296 // warning in this case.
297- std::lock_guard<std::mutex> lock (StreamBuffersPoolMutex);
298- if (!StreamBuffersPool.empty ())
299- std::cerr
300- << " \n WARNING: Some commands may have not finished the execution and "
301- " not all resources were released. Please be sure that all kernels "
302- " have synchronization points.\n\n " ;
297+ if (pi::trace (pi::TraceLevel::PI_TRACE_BASIC)) {
298+ std::lock_guard<std::mutex> lock (StreamBuffersPoolMutex);
299+ if (!StreamBuffersPool.empty ())
300+ fprintf (
301+ stderr,
302+ " \n WARNING: Some commands may have not finished the execution and "
303+ " not all resources were released. Please be sure that all kernels "
304+ " have synchronization points.\n\n " );
305+ }
303306}
304307
305308void Scheduler::lockSharedTimedMutex (
You can’t perform that action at this time.
0 commit comments