Skip to content

Commit 8a29481

Browse files
committed
More logging for detect versions
1 parent 23201fe commit 8a29481

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

devops/scripts/benchmarks/history.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def git_info_from_path(path: Path) -> (str, str):
9797

9898
if options.git_commit_override is None or options.github_repo_override is None:
9999
if options.detect_versions.sycl:
100+
print(f"Auto-detecting sycl version...")
100101
github_repo, git_hash = DetectVersion.instance().get_dpcpp_git_info()
101102
else:
102103
git_hash, github_repo = git_info_from_path(
@@ -128,6 +129,7 @@ def git_info_from_path(path: Path) -> (str, str):
128129
if options.build_compute_runtime:
129130
compute_runtime = options.compute_runtime_tag
130131
elif options.detect_versions.compute_runtime:
132+
print(f"Auto-detecting compute_runtime version...")
131133
detect_res = DetectVersion.instance()
132134
compute_runtime = detect_res.get_compute_runtime_ver()
133135
if detect_res.get_compute_runtime_ver_cached() is None:

devops/scripts/benchmarks/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,6 @@ def validate_and_parse_env_args(env_args):
617617
parser.error(f"Specified --detect-version-cpp-path is not a valid file")
618618

619619
enabled_components = args.detect_version.split(",")
620-
print(f"Detecting versions in {enabled_components}")
621620
options.detect_versions.sycl = "sycl" in enabled_components
622621
options.detect_versions.compute_runtime = (
623622
"compute_runtime" in enabled_components

devops/scripts/benchmarks/utils/detect_versions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ def get_compute_runtime_ver(self) -> str:
153153
Returns the compute-runtime version by deriving from l0 version.
154154
"""
155155
if self.compute_runtime_ver_cache is not None:
156+
print(f"Using cached compute-runtime tag {self.compute_runtime_ver_cache}...")
156157
return self.compute_runtime_ver_cache
157158

158159
patch = _get_patch_from_ver(self.l0_ver)

0 commit comments

Comments
 (0)