Skip to content

Conversation

@lslusarczyk
Copy link
Contributor

with unittest support

@lslusarczyk lslusarczyk changed the title [Benchmarks] add Record and Reply benchmarks [Benchmarks] add Record and Replay benchmarks Oct 28, 2025
@lslusarczyk lslusarczyk marked this pull request as ready for review October 28, 2025 09:46
@lslusarczyk lslusarczyk requested a review from a team as a code owner October 28, 2025 09:46
"./devops/scripts/benchmarks/main.py",
self.WORKDIR_DIR,
"--sycl",
os.environ.get("ONEAPI_ROOT"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add info that oneapi has to be installed and sourced for sycl benchmarks tests

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that you've changed the code so that oneapi is no more needed. Please, remove the comment. This CMPLR_ROOT env var is set directly in the workflow file.


metadata = out.metadata[testName]
self.assertEqual(metadata["type"], "benchmark")
self.assertEqual(set(metadata["tags"]), {"L0", "latency", "micro", "submit"})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also check if group metadata for this benchmark has been created in data.json

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please precise what path in json I need to verify

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

benchmark_group = metadata["explicit_group"]
group_metadata = out.metadata[benchmark_group]
self.assertEqual(group_metadata["type"], "group")

Returns:
bool: True if the repository was cloned or updated, False if it was already up-to-date.
"""
if os.environ.get("LLVM_BENCHMARKS_UNIT_TESTING") == "1":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we describe this env var somewhere?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All new env vars should be described in some tests' readme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants