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 14
14
#include < detail/stream_impl.hpp>
15
15
16
16
#include < chrono>
17
- #include < iostream >
17
+ #include < cstdio >
18
18
#include < memory>
19
19
#include < mutex>
20
20
#include < set>
@@ -294,12 +294,15 @@ Scheduler::~Scheduler() {
294
294
// resources are released only if one of the listed sync points was used for
295
295
// the kernel. Otherwise resources for stream will not be released, issue a
296
296
// 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
+ }
303
306
}
304
307
305
308
void Scheduler::lockSharedTimedMutex (
You can’t perform that action at this time.
0 commit comments