From 9ed6fbc9e5fbae1cdc291e1e3ab52dc7586c6f7d Mon Sep 17 00:00:00 2001 From: Jeff Fifield Date: Mon, 1 Apr 2024 14:32:00 -0600 Subject: [PATCH] Update lit.cfg.py update npu detection for linux 6.8 --- test/lit.cfg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/lit.cfg.py b/test/lit.cfg.py index e65406abe..60c5a4b55 100644 --- a/test/lit.cfg.py +++ b/test/lit.cfg.py @@ -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: