From 757d1891e9eb2feaff0503b484698a39e3334dd9 Mon Sep 17 00:00:00 2001 From: Tim <43156029+AtlantaPepsi@users.noreply.github.com> Date: Wed, 4 Sep 2024 16:55:36 -0400 Subject: [PATCH] Update EnvVars.cpp --- test/common/EnvVars.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/common/EnvVars.cpp b/test/common/EnvVars.cpp index d7fd501891..753c7366c0 100644 --- a/test/common/EnvVars.cpp +++ b/test/common/EnvVars.cpp @@ -94,6 +94,7 @@ namespace RcclUnitTesting // NOTE: Cannot use HIP call prior to launching unless it is inside another child process numDetectedGpus = 0; getDeviceCount(&numDetectedGpus); + numDetectedGpus = min(numDetectedGpus, 16); isGfx94 = false; getArchInfo(&isGfx94, "gfx94"); isGfx12 = false;