From 447a30e985a78719e1ef8508642fa3d4d2751e0c Mon Sep 17 00:00:00 2001 From: Chris Freehill Date: Thu, 1 Nov 2018 08:02:27 -0500 Subject: [PATCH] Initial gfx908 updates Change-Id: I3d6307d6613a38861a95561b9ac68abaa5964b48 --- runtime/hsa-runtime/core/runtime/isa.cpp | 1 + runtime/hsa-runtime/loader/loaders.cpp | 3 +++ runtime/hsa-runtime/loader/loaders.hpp | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/runtime/hsa-runtime/core/runtime/isa.cpp b/runtime/hsa-runtime/core/runtime/isa.cpp index 7c9768c104..b181615f76 100644 --- a/runtime/hsa-runtime/core/runtime/isa.cpp +++ b/runtime/hsa-runtime/core/runtime/isa.cpp @@ -216,6 +216,7 @@ const IsaRegistry::IsaMap IsaRegistry::GetSupportedIsas() { ISAREG_ENTRY_GEN(9, 0, 4, false, false) ISAREG_ENTRY_GEN(9, 0, 6, false, false) ISAREG_ENTRY_GEN(9, 0, 6, false, true ) + ISAREG_ENTRY_GEN(9, 0, 8, false, true ) return supported_isas; } diff --git a/runtime/hsa-runtime/loader/loaders.cpp b/runtime/hsa-runtime/loader/loaders.cpp index 624a8c8941..439d8930d9 100644 --- a/runtime/hsa-runtime/loader/loaders.cpp +++ b/runtime/hsa-runtime/loader/loaders.cpp @@ -91,6 +91,7 @@ namespace loader { gfx901.handle = 901; gfx902.handle = 902; gfx903.handle = 903; + gfx908.handle = 908; } hsa_isa_t OfflineLoaderContext::IsaFromName(const char *name) @@ -120,6 +121,8 @@ namespace loader { return gfx902; } else if (sname == "AMD:AMDGPU:9:0:3") { return gfx903; + } else if (sname == "AMD:AMDGPU:9:0:8") { + return gfx908; } assert(0); diff --git a/runtime/hsa-runtime/loader/loaders.hpp b/runtime/hsa-runtime/loader/loaders.hpp index 94b3ceca39..dc8addd23c 100644 --- a/runtime/hsa-runtime/loader/loaders.hpp +++ b/runtime/hsa-runtime/loader/loaders.hpp @@ -55,7 +55,7 @@ namespace loader { private: hsa_isa_t invalid; hsa_isa_t gfx700, gfx701, gfx800, gfx801, gfx802, gfx803, gfx804, gfx810; - hsa_isa_t gfx900, gfx901, gfx902, gfx903; + hsa_isa_t gfx900, gfx901, gfx902, gfx903, gfx908; std::ostream& out; typedef std::set PointerSet; PointerSet pointers;