From c60cb043e6301634516c67e0fbf76e0877aee13b Mon Sep 17 00:00:00 2001 From: Joseph Greathouse Date: Fri, 29 Oct 2021 18:55:56 -0500 Subject: [PATCH] Correct gfx90c gfx arch number in HSA topology The AMD compiler team has confirmed that they expect gfx90c to be gfx90c, with a major/minor/stepping of 9, 0, and 12 respectively. It appears that there is a typo in the libhsakmt topology information that lists this part as gfx902. This patch fixes the issue. Signed-off-by: Joseph Greathouse Change-Id: I6f907a7aa6f190b12aba8bb4210c7b341b3c720b [ROCm/ROCR-Runtime commit: a06d1a38840448264f633e2c204bc13ba859cf76] --- projects/rocr-runtime/src/topology.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/projects/rocr-runtime/src/topology.c b/projects/rocr-runtime/src/topology.c index be40aaff5c..7b5ed09bb4 100644 --- a/projects/rocr-runtime/src/topology.c +++ b/projects/rocr-runtime/src/topology.c @@ -204,11 +204,6 @@ static const struct hsa_gfxip_table gfxip_lookup_table[] = { /* Raven */ { 0x15DD, 9, 0, 2, "Raven" }, { 0x15D8, 9, 0, 2, "Raven" }, - /* Renoir */ - { 0x15E7, 9, 0, 2, "Renoir" }, - { 0x1636, 9, 0, 2, "Renoir" }, - { 0x1638, 9, 0, 2, "Renoir" }, - { 0x164C, 9, 0, 2, "Renoir" }, /* Vega20 */ { 0x66A0, 9, 0, 6, "Vega20" }, { 0x66A1, 9, 0, 6, "Vega20" }, @@ -227,6 +222,11 @@ static const struct hsa_gfxip_table gfxip_lookup_table[] = { { 0x740C, 9, 0, 10, "Aldebaran" }, { 0x740F, 9, 0, 10, "Aldebaran" }, { 0x7410, 9, 0, 10, "Aldebaran" }, + /* Renoir */ + { 0x15E7, 9, 0, 12, "Renoir" }, + { 0x1636, 9, 0, 12, "Renoir" }, + { 0x1638, 9, 0, 12, "Renoir" }, + { 0x164C, 9, 0, 12, "Renoir" }, /* Navi10 */ { 0x7310, 10, 1, 0, "Navi10" }, { 0x7312, 10, 1, 0, "Navi10" },