From 5d558861c205c0ca7bfb140196abf0be456ac2d3 Mon Sep 17 00:00:00 2001 From: Ben Sander Date: Wed, 10 May 2017 13:23:49 -0500 Subject: [PATCH] Fix hipStreamWaitEvent for single GPU. [ROCm/hip commit: e0c3ea15b294ba8d6f1404b32a443489db38d6ca] --- projects/hip/tests/src/runtimeApi/stream/hipStreamWaitEvent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/tests/src/runtimeApi/stream/hipStreamWaitEvent.cpp b/projects/hip/tests/src/runtimeApi/stream/hipStreamWaitEvent.cpp index 1d9ec45685..adf0d4af0c 100644 --- a/projects/hip/tests/src/runtimeApi/stream/hipStreamWaitEvent.cpp +++ b/projects/hip/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