From 74e1dece0b750f370321c3bb8aa940370ac9c4b4 Mon Sep 17 00:00:00 2001 From: Shahab Vahedi Date: Wed, 1 Jul 2026 12:23:00 +0200 Subject: [PATCH] architecture: Add gfx117x support Add ELF mach values for gfx117x architectures. Also, create the respective architectures. --- projects/rocdbgapi/CHANGELOG.md | 10 ++++- projects/rocdbgapi/CMakeLists.txt | 2 +- projects/rocdbgapi/include/amd-dbgapi.h.in | 4 ++ projects/rocdbgapi/src/architecture.cpp | 44 ++++++++++++++++++++++ projects/rocdbgapi/src/os_driver.h | 4 ++ 5 files changed, 62 insertions(+), 2 deletions(-) diff --git a/projects/rocdbgapi/CHANGELOG.md b/projects/rocdbgapi/CHANGELOG.md index f108d47cb425..e0c4a052c64d 100644 --- a/projects/rocdbgapi/CHANGELOG.md +++ b/projects/rocdbgapi/CHANGELOG.md @@ -3,7 +3,15 @@ Full documentation for AMD Debugger API is available at [rocm.docs.amd.com/rocdbgapi](https://rocm.docs.amd.com/projects/ROCdbgapi/en/latest/index.html). -## rocm-dbgapi-0.82 for ROCm-X +## rocm-dbgapi-0.82.1 for ROCm-X +### Added +- Support for the following architectures: + - `gfx1170` + - `gfx1171` + - `gfx1172` + - `gfx10-7-generic` + +## rocm-dbgapi-0.82.0 ### Added - `amd_dbgapi_cluster_get_info` to query various information about a given cluster. diff --git a/projects/rocdbgapi/CMakeLists.txt b/projects/rocdbgapi/CMakeLists.txt index 8ddf82020504..2f7bb063bfe8 100644 --- a/projects/rocdbgapi/CMakeLists.txt +++ b/projects/rocdbgapi/CMakeLists.txt @@ -61,7 +61,7 @@ cmake_minimum_required(VERSION 3.21) -project(amd-dbgapi VERSION 0.82.0 LANGUAGES CXX DESCRIPTION "ROCm Debugger API") +project(amd-dbgapi VERSION 0.82.1 LANGUAGES CXX DESCRIPTION "ROCm Debugger API") include(GNUInstallDirs) include(CheckCXXSourceCompiles) diff --git a/projects/rocdbgapi/include/amd-dbgapi.h.in b/projects/rocdbgapi/include/amd-dbgapi.h.in index f0d8082d1144..91cf1dbf881c 100644 --- a/projects/rocdbgapi/include/amd-dbgapi.h.in +++ b/projects/rocdbgapi/include/amd-dbgapi.h.in @@ -288,6 +288,9 @@ * - gfx1102 (Hotpink Bonefish) * - gfx1150 * - gfx1151 + * - gfx1170 + * - gfx1171 + * - gfx1172 * - gfx1200 * - gfx1201 * - gfx1250 @@ -300,6 +303,7 @@ * - gfx10-1-generic * - gfx10-3-generic * - gfx11-generic + * - gfx11-7-generic * - gfx12-generic * * For more information about the AMD ROCm ecosystem, please refer to: diff --git a/projects/rocdbgapi/src/architecture.cpp b/projects/rocdbgapi/src/architecture.cpp index ae74eacf3d67..b6e2b74b79bc 100644 --- a/projects/rocdbgapi/src/architecture.cpp +++ b/projects/rocdbgapi/src/architecture.cpp @@ -6251,6 +6251,46 @@ class gfx1153_t final : public gfx11_architecture_t } }; +class gfx11_7_generic_t final : public gfx11_architecture_t +{ +public: + gfx11_7_generic_t () + : gfx11_architecture_t (EF_AMDGPU_MACH_AMDGCN_GFX11_7_GENERIC, + "amdgcn-amd-amdhsa--gfx11-7-generic") + { + } +}; + +class gfx1170_t final : public gfx11_architecture_t +{ +public: + gfx1170_t () + : gfx11_architecture_t (EF_AMDGPU_MACH_AMDGCN_GFX1170, + "amdgcn-amd-amdhsa--gfx1170") + { + } +}; + +class gfx1171_t final : public gfx11_architecture_t +{ +public: + gfx1171_t () + : gfx11_architecture_t (EF_AMDGPU_MACH_AMDGCN_GFX1171, + "amdgcn-amd-amdhsa--gfx1171") + { + } +}; + +class gfx1172_t final : public gfx11_architecture_t +{ +public: + gfx1172_t () + : gfx11_architecture_t (EF_AMDGPU_MACH_AMDGCN_GFX1172, + "amdgcn-amd-amdhsa--gfx1172") + { + } +}; + class gfx12_architecture_t : public gfx11_architecture_t { private: @@ -8684,6 +8724,7 @@ decltype (architecture_t::s_architecture_map) map.emplace (make_architecture ()); map.emplace (make_architecture ()); map.emplace (make_architecture ()); + map.emplace (make_architecture ()); map.emplace (make_architecture ()); map.emplace (make_architecture ()); map.emplace (make_architecture ()); @@ -8692,6 +8733,9 @@ decltype (architecture_t::s_architecture_map) map.emplace (make_architecture ()); map.emplace (make_architecture ()); map.emplace (make_architecture ()); + map.emplace (make_architecture ()); + map.emplace (make_architecture ()); + map.emplace (make_architecture ()); map.emplace (make_architecture ()); map.emplace (make_architecture ()); map.emplace (make_architecture ()); diff --git a/projects/rocdbgapi/src/os_driver.h b/projects/rocdbgapi/src/os_driver.h index 57d1906220c2..9b9dbf1770c5 100644 --- a/projects/rocdbgapi/src/os_driver.h +++ b/projects/rocdbgapi/src/os_driver.h @@ -65,6 +65,9 @@ enum elf_amdgpu_machine_t : uint32_t EF_AMDGPU_MACH_AMDGCN_GFX1151 = 0x04a, EF_AMDGPU_MACH_AMDGCN_GFX1152 = 0x055, EF_AMDGPU_MACH_AMDGCN_GFX1153 = 0x058, + EF_AMDGPU_MACH_AMDGCN_GFX1170 = 0x05d, + EF_AMDGPU_MACH_AMDGCN_GFX1171 = 0x05e, + EF_AMDGPU_MACH_AMDGCN_GFX1172 = 0x05c, EF_AMDGPU_MACH_AMDGCN_GFX1200 = 0x048, EF_AMDGPU_MACH_AMDGCN_GFX1201 = 0x04e, EF_AMDGPU_MACH_AMDGCN_GFX1250 = 0x049, @@ -73,6 +76,7 @@ enum elf_amdgpu_machine_t : uint32_t EF_AMDGPU_MACH_AMDGCN_GFX10_1_GENERIC = 0x052, EF_AMDGPU_MACH_AMDGCN_GFX10_3_GENERIC = 0x053, EF_AMDGPU_MACH_AMDGCN_GFX11_GENERIC = 0x054, + EF_AMDGPU_MACH_AMDGCN_GFX11_7_GENERIC = 0x062, EF_AMDGPU_MACH_AMDGCN_GFX12_GENERIC = 0x059, EF_AMDGPU_MACH_AMDGCN_GFX9_4_GENERIC = 0x05f };