From 60f00e4e8a399d4a4881f6540e848c34aa057bd7 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/clr commit: c1da0f1e129d47762f114b37f4cadcfb63edb3cb] --- projects/clr/hipamd/src/hip_hcc.cpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/projects/clr/hipamd/src/hip_hcc.cpp b/projects/clr/hipamd/src/hip_hcc.cpp index ae0f00320f..1f2f6f0b3b 100644 --- a/projects/clr/hipamd/src/hip_hcc.cpp +++ b/projects/clr/hipamd/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