Skip to content

Commit 72fbdca

Browse files
authored
[benchmarks] change tritonbench path
Differential Revision: D84927071 Pull Request resolved: #966
1 parent 454932d commit 72fbdca

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

benchmarks/run.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,10 @@ def accuracy_fail_hook(
10561056
try:
10571057
from tritonbench.run import run as tritonbench_run
10581058
except ImportError:
1059-
from pytorch.tritonbench.run import run as tritonbench_run
1059+
try:
1060+
from tritonbench.utils.run_utils import tritonbench_run
1061+
except ImportError:
1062+
from pytorch.tritonbench.run import run as tritonbench_run
10601063

10611064
with tempfile.NamedTemporaryFile(mode="w+t", suffix=".csv") as tmp:
10621065
tritonbench_args.extend(["--output", tmp.name])
@@ -1093,7 +1096,7 @@ def process_result(
10931096
metrics = collections.defaultdict(list)
10941097
for row in lines[1:]:
10951098
row_data = row.strip().split(";")
1096-
if row_data[0] == "average":
1099+
if row_data[0] == "average" or len(row_data) == 1:
10971100
continue
10981101
for idx, (name, item) in enumerate(zip(names, row_data, strict=True)):
10991102
if idx == 0:

0 commit comments

Comments
 (0)