From 8418895b92dc18493f3dfac54d3078842f71efb0 Mon Sep 17 00:00:00 2001 From: cfallows-amd Date: Tue, 18 Nov 2025 14:51:05 -0500 Subject: [PATCH] Add tencentos to roofline binary detection (#1830) Force tencentos to use rhel-based bin since tencent is branched off of centos, which is branch of fedora. Verified rocprof-compute run correctly selects bin to use, and the roofline benchmark values look similar between runs on rhel vs tencentos4 docker images on same system. Signed-off-by: Carrie Fallows --- projects/rocprofiler-compute/src/utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocprofiler-compute/src/utils/utils.py b/projects/rocprofiler-compute/src/utils/utils.py index 2362f58a5f..dd819a4973 100644 --- a/projects/rocprofiler-compute/src/utils/utils.py +++ b/projects/rocprofiler-compute/src/utils/utils.py @@ -1200,7 +1200,7 @@ def detect_roofline(mspec: Any) -> dict[str, str]: # noqa: ANN401 elif "debian" in id_list: distro = "22.04" - elif "fedora" in id_list: + elif ("fedora" in id_list) or ("tencentos" in id_list): distro = "platform:el8" elif "suse" in id_list: