From 43750c8bfed6ca91fc47fd1fa6d620197e26c84c Mon Sep 17 00:00:00 2001 From: Przemyslaw Tredak Date: Wed, 21 Oct 2020 11:50:12 -0700 Subject: [PATCH] Remove cleanup on side threads (#19378) * Remove cleanup on side threads * removed comment --- src/engine/naive_engine.cc | 3 --- src/engine/threaded_engine_perdevice.cc | 4 ---- 2 files changed, 7 deletions(-) diff --git a/src/engine/naive_engine.cc b/src/engine/naive_engine.cc index 9d737143994a..95528a934c6c 100644 --- a/src/engine/naive_engine.cc +++ b/src/engine/naive_engine.cc @@ -74,14 +74,11 @@ class NaiveEngine final : public Engine { LOG(INFO) << "Engine shutdown"; for (size_t i = 0; i < streams_.size(); ++i) { if (streams_[i] != nullptr) { - // Catch exception for CUDA driver shutdown - MSHADOW_CATCH_ERROR(mshadow::DeleteStream(streams_[i])); streams_[i] = nullptr; } } for (size_t i = 0; i < aux_streams_.size(); ++i) { if (aux_streams_[i] != nullptr) { - delete aux_streams_[i]; aux_streams_[i] = nullptr; } } diff --git a/src/engine/threaded_engine_perdevice.cc b/src/engine/threaded_engine_perdevice.cc index 81494ec66096..4c5d1befb8b3 100644 --- a/src/engine/threaded_engine_perdevice.cc +++ b/src/engine/threaded_engine_perdevice.cc @@ -273,10 +273,6 @@ class ThreadedEnginePerDevice : public ThreadedEngine { while (task_queue->Pop(&opr_block)) { this->ExecuteOprBlock(run_ctx, opr_block); } - // Catch exception for CUDA driver shutdown - MSHADOW_CATCH_ERROR(mshadow::DeleteStream(stream)); - if (aux_stream != nullptr) - delete aux_stream; #else ready_event->signal(); #endif