From 5ce2ddd5bdff753feb9b53896c6b622652166142 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. [ROCm/hip commit: c7f583dcfb45679900b1a9cc3c66371a8be90187] --- projects/hip/tests/src/hipMemcpyAll.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/hip/tests/src/hipMemcpyAll.cpp b/projects/hip/tests/src/hipMemcpyAll.cpp index c8484aa32f..49e7c94bdf 100644 --- a/projects/hip/tests/src/hipMemcpyAll.cpp +++ b/projects/hip/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; }