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/rocminfo commit: 34cc693bef]
This commit is contained in:
Mark Searles
2023-03-27 08:56:00 -07:00
parent 34499a0855
commit ee2eb9e46d
+1 -1
View File
@@ -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)