From 26ebd1727cde99db58e791bf32fd4e2e1456c432 Mon Sep 17 00:00:00 2001 From: Chris Freehill Date: Wed, 11 Oct 2017 23:43:00 -0500 Subject: [PATCH] Use Major/Minor/Step device numbers to differentiate gfx devices Change-Id: I0901871971a5b33018917ada6c0e69ac7aa91944 [ROCm/ROCR-Runtime commit: a7cbe78366cdc631fe5bad75f5efc6e670ec8887] --- .../runtime/hsa-runtime/loader/loaders.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) mode change 100644 => 100755 projects/rocr-runtime/runtime/hsa-runtime/loader/loaders.cpp diff --git a/projects/rocr-runtime/runtime/hsa-runtime/loader/loaders.cpp b/projects/rocr-runtime/runtime/hsa-runtime/loader/loaders.cpp old mode 100644 new mode 100755 index f01d48d276..7a795acce0 --- a/projects/rocr-runtime/runtime/hsa-runtime/loader/loaders.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/loader/loaders.cpp @@ -90,6 +90,12 @@ namespace loader { #if defined(GFX9_BUILD) gfx900.handle = 900; gfx901.handle = 901; + gfx901.handle = 902; + gfx903.handle = 903; + gfx903.handle = 904; + gfx903.handle = 905; + gfx903.handle = 906; + gfx907.handle = 907; #endif // GFX9_BUILD } @@ -117,6 +123,18 @@ namespace loader { return gfx900; } else if (sname == "AMD:AMDGPU:9:0:1") { return gfx901; + } else if (sname == "AMD:AMDGPU:9:0:2") { + return gfx902; + } else if (sname == "AMD:AMDGPU:9:0:3") { + return gfx903; + } else if (sname == "AMD:AMDGPU:9:0:4") { + return gfx904; + } else if (sname == "AMD:AMDGPU:9:0:5") { + return gfx905; + } else if (sname == "AMD:AMDGPU:9:0:6") { + return gfx906; + } else if (sname == "AMD:AMDGPU:9:0:7") { + return gfx907; #endif // GFX_BUILD } else { assert(0);