From 2ce7d971e5c42dedb92829911f38aa97db9a5095 Mon Sep 17 00:00:00 2001 From: akolliasAMD <99202231+akolliasAMD@users.noreply.github.com> Date: Tue, 11 Apr 2023 08:59:56 -0600 Subject: [PATCH] lessened the amount of child processes to active ones (#720) --- test/common/TestBed.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/common/TestBed.cpp b/test/common/TestBed.cpp index f293d4d6f8..20f7f55188 100644 --- a/test/common/TestBed.cpp +++ b/test/common/TestBed.cpp @@ -92,8 +92,8 @@ namespace RcclUnitTesting } // Create child-processes - childList.resize(this->numDevicesAvailable); - for (int childId = 0; childId < this->numDevicesAvailable; ++childId) + childList.resize(this->numActiveChildren); + for (int childId = 0; childId < this->numActiveChildren; ++childId) { childList[childId] = new TestBedChild(childId, ev.verbose, ev.printValues); if (childList[childId]->InitPipes() != TEST_SUCCESS) @@ -396,7 +396,7 @@ namespace RcclUnitTesting // Send Stop to all child processes int const cmd = TestBedChild::CHILD_STOP; - for (int childId = 0; childId < this->numDevicesAvailable; ++childId) + for (int childId = 0; childId < this->numActiveChildren; ++childId) { PIPE_WRITE(childId, cmd);