From 3ea8ac7d864ae103797837581e5d263eb2323d02 Mon Sep 17 00:00:00 2001 From: daniellegillai Date: Fri, 10 Jul 2026 09:48:06 -0700 Subject: [PATCH] clear pipelines to avoid race --- rocAL/source/pipeline/master_graph.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rocAL/source/pipeline/master_graph.cpp b/rocAL/source/pipeline/master_graph.cpp index 388ecd022..953135e92 100644 --- a/rocAL/source/pipeline/master_graph.cpp +++ b/rocAL/source/pipeline/master_graph.cpp @@ -388,6 +388,8 @@ void MasterGraph::release() { _meta_data_nodes.clear(); _tensor_map.clear(); _ring_buffer.release_gpu_res(); + // pipelines' associated vx nodes must have vxReleaseNode called before vxReleaseContext to avoid race condition + _pipeline_operators.clear(); // shut_down loader:: required for releasing any allocated resourses for (auto &loader_module : _loader_modules) loader_module->shut_down();