Skip to content

Commit 642a6eb

Browse files
authored
[UR][Benchmarks] Fix compilation and measurements in oneDNN benchmark (#19166)
Fix compilation options and measured time value Signed-off-by: Mateusz P. Nowak <[email protected]>
1 parent b0a40e2 commit 642a6eb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

devops/scripts/benchmarks/benches/benchdnn.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ def setup(self):
7272
f"-S {self.src_dir}",
7373
f"-B {self.build_dir}",
7474
f"-DCMAKE_PREFIX_PATH={options.sycl}",
75+
"-DCMAKE_CXX_COMPILER=clang++",
76+
"-DCMAKE_C_COMPILER=clang",
7577
"-DCMAKE_BUILD_TYPE=Release",
7678
"-DDNNL_BUILD_TESTS=ON",
7779
"-DDNNL_BUILD_EXAMPLES=OFF",
@@ -165,7 +167,7 @@ def run(self, env_vars):
165167
]
166168

167169
# example output:
168-
# Output template: perf, %engine%,%-time%,%-ops%,%-MB%,%-pr
170+
# Output template: perf,%engine%,%0time%,%-ops%,%-MB%,%-pr
169171
# perf,gpu,0.000000,0.000000,0.000000,0
170172
# perf,gpu,0.000000,0.000000,0.000000,0
171173
def _extract_time(self, output):
@@ -176,7 +178,7 @@ def _extract_time(self, output):
176178
if line.startswith("Output template:"):
177179
template = line.replace("Output template: ", "").strip().split(",")
178180
try:
179-
idx_time = template.index("%-time%")
181+
idx_time = template.index("%0time%")
180182
except ValueError:
181183
return 0.0
182184
continue

0 commit comments

Comments
 (0)