diff --git a/tests/src/runtimeApi/stream/hipStreamWaitEvent.cpp b/tests/src/runtimeApi/stream/hipStreamWaitEvent.cpp index 1d9ec45685..adf0d4af0c 100644 --- a/tests/src/runtimeApi/stream/hipStreamWaitEvent.cpp +++ b/tests/src/runtimeApi/stream/hipStreamWaitEvent.cpp @@ -395,7 +395,7 @@ int main(int argc, char *argv[]) int numDevices; HIPCHECK(hipGetDeviceCount(&numDevices)); - numDevices =2; // TODO - remove me. + numDevices = min(2, numDevices); // multi-GPU to 2 device. for (int d=0; d