Roofline support for SLES15 SP3 and greater (#109)

Signed-off-by: coleramos425 <colramos@amd.com>


[ROCm/rocprofiler-compute commit: 77559a2f25]
Tá an tiomantas seo le fáil i:
coleramos425
2023-04-14 12:50:28 -05:00
tuismitheoir 38442c0daf
tiomantas b72787b361
+6 -2
Féach ar an gComhad
@@ -326,9 +326,13 @@ def detect_roofline():
elif rhel_distro == "platform:el8":
# Must be a valid RHEL machine
distro = rhel_distro
elif sles_distro == "15.3":
elif (
(type(sles_distro) == str and len(sles_distro) >= 3) and # confirm string and len
sles_distro[:2] == "15" and int(sles_distro[3]) >= 3 # SLES15 and SP >= 3
):
# Must be a valid SLES machine
distro = sles_distro
# Use SP3 binary for all forward compatible service pack versions
distro = "15.3"
elif ubuntu_distro == "20.04":
# Must be a valid Ubuntu machine
distro = ubuntu_distro