Merge pull request #4 from AMDResearch/dev

Add Roofline support for Ubuntu 20.04

[ROCm/rocprofiler-compute commit: 9afd0525af]
Esse commit está contido em:
Cole Ramos
2022-11-07 11:03:30 -06:00
commit de GitHub
2 arquivos alterados com 5 adições e 4 exclusões
+1 -4
Ver Arquivo
@@ -30,10 +30,7 @@ OMNIPERF_HOME = Path(__file__).resolve().parent
# OMNIPERF INFO
PROG = "omniperf"
SOC_LIST = ["mi50", "mi100", "mi200"]
DISTRO_MAP = {
"platform:el8": "rhel8",
"15.3": "sle15sp3",
}
DISTRO_MAP = {"platform:el8": "rhel8", "15.3": "sle15sp3", "20.04": "ubuntu20_04"}
version = os.path.join(OMNIPERF_HOME.parent, "VERSION")
try:
with open(version, "r") as file:
+4
Ver Arquivo
@@ -203,6 +203,7 @@ def detect_roofline():
rocm_ver = mspec.rocmversion[:1]
os_release = path("/etc/os-release").read_text()
ubuntu_distro = specs.search(r'VERSION_ID="(.*?)"', os_release)
rhel_distro = specs.search(r'PLATFORM_ID="(.*?)"', os_release)
sles_distro = specs.search(r'VERSION_ID="(.*?)"', os_release)
@@ -221,6 +222,9 @@ def detect_roofline():
elif sles_distro == "15.3":
# Must be a valid SLES machine
distro = sles_distro
elif ubuntu_distro == "20.04":
# Must be a valid Ubuntu machine
distro = ubuntu_distro
else:
print("ROOFLINE ERROR: Cannot find a valid binary for your operating system")
sys.exit(1)