diff --git a/runtime/hsa-runtime/core/runtime/isa.cpp b/runtime/hsa-runtime/core/runtime/isa.cpp index 9481b1d593..457311cf42 100755 --- a/runtime/hsa-runtime/core/runtime/isa.cpp +++ b/runtime/hsa-runtime/core/runtime/isa.cpp @@ -293,6 +293,7 @@ constexpr size_t hsa_name_size = 63; ISAREG_ENTRY_GEN("gfx1030", 10, 3, 0, unsupported, unsupported) ISAREG_ENTRY_GEN("gfx1031", 10, 3, 1, unsupported, unsupported) ISAREG_ENTRY_GEN("gfx1032", 10, 3, 2, unsupported, unsupported) + ISAREG_ENTRY_GEN("gfx1033", 10, 3, 3, unsupported, unsupported) #undef ISAREG_ENTRY_GEN return supported_isas; } diff --git a/runtime/hsa-runtime/image/blit_kernel.cpp b/runtime/hsa-runtime/image/blit_kernel.cpp index 4d5a996a9b..33a3e1c91e 100644 --- a/runtime/hsa-runtime/image/blit_kernel.cpp +++ b/runtime/hsa-runtime/image/blit_kernel.cpp @@ -88,6 +88,7 @@ extern uint8_t ocl_blit_object_gfx1012[]; extern uint8_t ocl_blit_object_gfx1030[]; extern uint8_t ocl_blit_object_gfx1031[]; extern uint8_t ocl_blit_object_gfx1032[]; +extern uint8_t ocl_blit_object_gfx1033[]; // Arguments inserted by OCL compiler, all zero here. struct OCLHiddenArgs { @@ -1001,6 +1002,8 @@ hsa_status_t BlitKernel::GetPatchedBlitObject(const char* agent_name, *blit_code_object = ocl_blit_object_gfx1031; } else if (sname == "gfx1032") { *blit_code_object = ocl_blit_object_gfx1032; + } else if (sname == "gfx1033") { + *blit_code_object = ocl_blit_object_gfx1033; } else { return HSA_STATUS_ERROR_INVALID_ISA_NAME; } diff --git a/runtime/hsa-runtime/image/blit_src/CMakeLists.txt b/runtime/hsa-runtime/image/blit_src/CMakeLists.txt index 465b1caf6b..5e4fd7f0d4 100644 --- a/runtime/hsa-runtime/image/blit_src/CMakeLists.txt +++ b/runtime/hsa-runtime/image/blit_src/CMakeLists.txt @@ -69,7 +69,7 @@ endif() # Determine the target devices if not specified if (NOT DEFINED TARGET_DEVICES) - set (TARGET_DEVICES "gfx700;gfx701;gfx702;gfx801;gfx802;gfx803;gfx805;gfx810;gfx900;gfx902;gfx904;gfx906;gfx908;gfx1010;gfx1011;gfx1012;gfx1030;gfx1031;gfx1032") + set (TARGET_DEVICES "gfx700;gfx701;gfx702;gfx801;gfx802;gfx803;gfx805;gfx810;gfx900;gfx902;gfx904;gfx906;gfx908;gfx1010;gfx1011;gfx1012;gfx1030;gfx1031;gfx1032;gfx1033") endif() set( TARGET_DEVICES ${TARGET_DEVICES} CACHE STRING "Build targets" FORCE ) diff --git a/runtime/hsa-runtime/loader/loaders.cpp b/runtime/hsa-runtime/loader/loaders.cpp index a369896fa5..a36ce2c950 100644 --- a/runtime/hsa-runtime/loader/loaders.cpp +++ b/runtime/hsa-runtime/loader/loaders.cpp @@ -99,6 +99,7 @@ namespace loader { gfx1030.handle = 1030; gfx1031.handle = 1031; gfx1032.handle = 1032; + gfx1033.handle = 1033; } hsa_isa_t OfflineLoaderContext::IsaFromName(const char *name) @@ -148,6 +149,8 @@ namespace loader { return gfx1031; } else if (sname == "AMD:AMDGPU:10:3:2") { return gfx1032; + } else if (sname == "AMD:AMDGPU:10:3:3") { + return gfx1033; } // The offline loader only supports code object v2 which only supports diff --git a/runtime/hsa-runtime/loader/loaders.hpp b/runtime/hsa-runtime/loader/loaders.hpp index e98c7463a0..ef6ef2a59e 100644 --- a/runtime/hsa-runtime/loader/loaders.hpp +++ b/runtime/hsa-runtime/loader/loaders.hpp @@ -58,7 +58,7 @@ namespace loader { hsa_isa_t gfx700, gfx701, gfx702, gfx703, gfx704, gfx705; hsa_isa_t gfx801, gfx802, gfx803, gfx805, gfx810; hsa_isa_t gfx900, gfx902, gfx904, gfx906, gfx908; - hsa_isa_t gfx1010, gfx1011, gfx1012, gfx1030, gfx1031, gfx1032; + hsa_isa_t gfx1010, gfx1011, gfx1012, gfx1030, gfx1031, gfx1032, gfx1033; std::ostream& out; typedef std::set PointerSet; PointerSet pointers;