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
  • Loading branch information
krzysz00 committed Oct 19, 2022
1 parent d8f236c commit 3364193
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 3364193

Please sign in to comment.