From 547f41e83ae8b382db185a3fcead157cfaf1e36a Mon Sep 17 00:00:00 2001 From: Chris Freehill Date: Tue, 27 Aug 2019 16:44:46 -0500 Subject: [PATCH] Add gfx10 as a target ID Change-Id: Ib9a78776af9f26ff9278a06b059cb8b7ee216ee2 [ROCm/ROCR-Runtime commit: b1040316280b973be5b7b19ce475c35cdad5d414] --- .../rocr-runtime/runtime/hsa-runtime/core/runtime/hsa.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/hsa.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/hsa.cpp index bbb599db40..bb8e758819 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/hsa.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/hsa.cpp @@ -1887,6 +1887,12 @@ static std::string ConvertOldTargetNameToNew( NewName = "amdgcn-amd-amdhsa--gfx906"; else if (OldName == "AMD:AMDGPU:9:0:8") NewName = "amdgcn-amd-amdhsa--gfx908"; + else if (OldName == "AMD:AMDGPU:10:1:0") + NewName = "amdgcn-amd-amdhsa--gfx1010"; + else if (OldName == "AMD:AMDGPU:10:1:1") + NewName = "amdgcn-amd-amdhsa--gfx1011"; + else if (OldName == "AMD:AMDGPU:10:1:2") + NewName = "amdgcn-amd-amdhsa--gfx1012"; else assert(false && "Unhandled target");