From 34cc693befdef50b35ef6f7c739edbb9511ae320 Mon Sep 17 00:00:00 2001 From: Mark Searles Date: Mon, 27 Mar 2023 08:56:00 -0700 Subject: [PATCH] Fix parsing of rocminfo output for ISAs with no features defined Patch is an internal port of https://github.com/RadeonOpenCompute/rocminfo/pull/59 Change-Id: Iea84f49a60abce73716a7451960c20ee0d2b7bca --- rocm_agent_enumerator | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocm_agent_enumerator b/rocm_agent_enumerator index ceb9e11165..b901e47012 100755 --- a/rocm_agent_enumerator +++ b/rocm_agent_enumerator @@ -92,7 +92,7 @@ def getGCNISA(line, match_from_beginning = False): return result.group(0) return None -@staticVars(search_name=re.compile("gfx[0-9a-fA-F]+:[-+:\w]+")) +@staticVars(search_name=re.compile("gfx[0-9a-fA-F]+(:[-+:\w]+)?")) def getGCNArchName(line): result = getGCNArchName.search_name.search(line)