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;