From a398cd4cdaae7852faab9953e72a23487a4fb11b Mon Sep 17 00:00:00 2001 From: Ben Sander Date: Mon, 2 May 2016 13:37:14 -0500 Subject: [PATCH] PASS with warning if not enough GPUs detected. --- hipamd/tests/src/hipMemcpyAll.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hipamd/tests/src/hipMemcpyAll.cpp b/hipamd/tests/src/hipMemcpyAll.cpp index c8484aa32f..49e7c94bdf 100644 --- a/hipamd/tests/src/hipMemcpyAll.cpp +++ b/hipamd/tests/src/hipMemcpyAll.cpp @@ -40,6 +40,8 @@ int num; hipGetDeviceCount(&num); if(num < 2) { + printf ("warning: Not enough GPUs to run the test, exiting without running.\n"); + passed(); return 0; }