From b3d70ca2716f8fe7d5b32056074fc91f62b89f9d Mon Sep 17 00:00:00 2001 From: pensun Date: Wed, 17 Feb 2016 09:24:39 -0600 Subject: [PATCH] 1. Bug fix 2. passed initial tests on different sets of HIP_VISIBLE_DEVICES: (0),(1),(0,1),(1,2),(2,3),(1,2,3),(2,3,4),(1,5,2,3) and achieved expected choice of GPU devices at the runtime. 3. Passed HIP test suite. [ROCm/hip commit: 8aa4bfce57c281de63f6a2b692123673ee368c51] --- projects/hip/src/hip_hcc.cpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/projects/hip/src/hip_hcc.cpp b/projects/hip/src/hip_hcc.cpp index ae0f00320f..1f2f6f0b3b 100644 --- a/projects/hip/src/hip_hcc.cpp +++ b/projects/hip/src/hip_hcc.cpp @@ -33,6 +33,7 @@ THE SOFTWARE. #include #include #include +#include #include #include @@ -580,15 +581,19 @@ void ihipInit() g_deviceCnt = 0; for (int i=0; i