8000 [UR][Benchmarks] Fix compilation and measurements in oneDNN benchmark by mateuszpn · Pull Request #19166 · intel/llvm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[UR][Benchmarks] Fix compilation and measurements in oneDNN benchmark #19166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 26, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions devops/scripts/benchmarks/benches/benchdnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ def setup(self):
f"-S {self.src_dir}",
f"-B {self.build_dir}",
f"-DCMAKE_PREFIX_PATH={options.sycl}",
"-DCMAKE_CXX_COMPILER=clang++",
"-DCMAKE_C_COMPILER=clang",
"-DCMAKE_BUILD_TYPE=Release",
"-DDNNL_BUILD_TESTS=ON",
"-DDNNL_BUILD_EXAMPLES=OFF",
Expand Down Expand Up @@ -165,7 +167,7 @@ def run(self, env_vars):
]

# example output:
# Output template: perf, %engine%,%-time%,%-ops%,%-MB%,%-pr
# Output template: perf,%engine%,%0time%,%-ops%,%-MB%,%-pr
# perf,gpu,0.000000,0.000000,0.000000,0
# perf,gpu,0.000000,0.000000,0.000000,0
def _extract_time(self, output):
Expand All @@ -176,7 +178,7 @@ def _extract_time(self, output):
if line.startswith("Output template:"):
template = line.replace("Output template: ", "").strip().split(",")
try:
idx_time = template.index("%-time%")
idx_time = template.index("%0time%")
except ValueError:
return 0.0
continue
Expand Down
Loading
0