Fix roofline override detection

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


[ROCm/rocprofiler-compute commit: 390f469091]
Цей коміт міститься в:
colramos-amd
2022-11-07 17:04:39 -06:00
джерело 90edecb06e
коміт 4f114e6ce7
2 змінених файлів з 4 додано та 2 видалено
+4 -1
Переглянути файл
@@ -382,7 +382,10 @@ def omniperf_profile(args):
# Skip roofline if --no-roof is set.
if not args.no_roof:
target_binary = detect_roofline()
path_to_binary = str(OMNIPERF_HOME) + "/utils/rooflines/roofline" + "-" + DISTRO_MAP[target_binary["distro"]] + "-" + args.target.lower() + "-rocm" + target_binary["rocm_ver"]
if target_binary["rocm_ver"] == "override":
path_to_binary = target_binary["path"]
else:
path_to_binary = str(OMNIPERF_HOME) + "/utils/rooflines/roofline" + "-" + DISTRO_MAP[target_binary["distro"]] + "-" + args.target.lower() + "-rocm" + target_binary["rocm_ver"]
# Distro is valid but cant find rocm ver
if not os.path.exists(path_to_binary):
print(
-1
Переглянути файл
@@ -35,7 +35,6 @@
import sys
import copy
import sys
import argparse