Skip to content

Commit

Permalink
Fix parsing of rocminfo output for ISAs with no features defined
Browse files Browse the repository at this point in the history
Patch is an internal port of
 #59

Change-Id: Iea84f49a60abce73716a7451960c20ee0d2b7bca
  • Loading branch information
searlmc1 committed Mar 27, 2023
1 parent 2c92e79 commit 34cc693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rocm_agent_enumerator
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 34cc693

Please sign in to comment.