Skip to content

Commit

Permalink
Update lit.cfg.py
Browse files Browse the repository at this point in the history
update npu detection for linux 6.8
  • Loading branch information
fifield authored Apr 1, 2024
1 parent 7494278 commit 9ed6fbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@
[xbutil, "examine"], stdout=subprocess.PIPE, stderr=subprocess.PIPE
)
result = result.stdout.decode("utf-8").split("\n")
p = re.compile("\[.+:.+:.+\].+Phoenix")
# Starting with Linux 6.8 the format is like "[0000:66:00.1] : RyzenAI-npu1"
p = re.compile("\[.+:.+:.+\].+(Phoenix|RyzenAI-(npu\d))")
for l in result:
m = p.match(l)
if m:
Expand Down

0 comments on commit 9ed6fbc

Please sign in to comment.