From 336419307dea1e5e9ebadf98182b8b118473d4f5 Mon Sep 17 00:00:00 2001 From: Krzysztof Drewniak Date: Fri, 9 Sep 2022 11:33:13 +0000 Subject: [PATCH] Fix parsing of rocminfo output for ISAs with no features defined --- rocm_agent_enumerator | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocm_agent_enumerator b/rocm_agent_enumerator index 6264a5f..b357fbc 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)