Skip to content

Commit 8f4cc72

Browse files
committed
Fix sccache calculations.
sccache started reporting PTX/CUBIN hits. We filter these out as they are not included in the `compile_requests` counter.
1 parent 25c14eb commit 8f4cc72

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/actions/workflow-results/prepare-execution-summary.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
import os
88
import re
99

10+
# sccache started reporting PTX/CUBIN hits.
11+
# We filter these out as they are not included in the `compile_requests` counter.
12+
sccache_languages = ["C/C++", "CUDA"]
13+
1014

1115
def job_succeeded(job):
1216
# The job was successful if the success file exists:
@@ -91,7 +95,8 @@ def update_summary_entry(entry, job, job_times=None):
9195
if "counts" in cache_hits:
9296
counts = cache_hits["counts"]
9397
for lang, lang_hits in counts.items():
94-
hits += lang_hits
98+
if lang in sccache_languages:
99+
hits += lang_hits
95100
if "sccache" not in entry:
96101
entry["sccache"] = {"requests": requests, "hits": hits}
97102
else:

0 commit comments

Comments
 (0)