-
Notifications
You must be signed in to change notification settings - Fork 792
[Benchmarks] Use combo profiler in UR SubmitKernel scenarios #20295
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
39f9a62
to
ee9bd83
Compare
It makes sense to measure either time elapsed or cpu instructions retired, not both. Adding an argument to scripts to run Compute Benchmarks scenarios with only one of two scenarios would lower the number of benchmark scenarios significantly. This would make the tests to take less amount of time to complete, giving the user an option to produce either time or cpu instructions count results, where applicable.
@vinser52, please, review. Now both time and CPU instructions count are always measured. |
Avoid creating new groups/names as each runtime has only one valid EmulateGraphs value.
Not directly related to this PR, but follow-up. Do I understand correctly that ComboProfiler is not supported in L0 versions of the benchmarks? Are you planning to extend L0 versions as well as a next step? |
Yes, currently only timer is supported in |
return self.bench.project.build_dir / "bin" / self.bench_name | ||
|
||
def cpu_count_str(self, separator: str = "") -> str: | ||
# Note: SYCL CI currently parses for on this "CPU count" value. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when you rebase with my PR, pls note there's a slight change in here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, rebased
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I am not an expert in this part. I would ask someone else who is more familiar with these scripts to approve. But no objections from my side.
@intel/llvm-gatekeepers, please merge. |
Use the Combo Profiler in all supported Compute Benchmark scenarios.
Introduce the--profiler-type
parameter for picking one profiler each run. This effectively disables running the same scenarios two times: with time measurement and with CPU instructions retired counter.Leaving by defaultCPU counter
scenarios enabled in CI. This will result in less scenarios being ran as we won't run time-measuring scenarios where CPU counter is available. In the dashboard, only historic results will be drawn, no new runs in such cases.The
CPU count
groups and names suffix can now be safely determined beforehand, without having to parse run logs.Also, a Compute Benchmarks version bump is made for these changes.