Skip to content

Commit

Permalink
Fix sccache calculations.
Browse files Browse the repository at this point in the history
sccache started reporting PTX/CUBIN hits.
We filter these out as they are not included in the `compile_requests` counter.
  • Loading branch information
alliepiper committed Jan 31, 2025
1 parent 25c14eb commit 8f4cc72
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
import os
import re

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


def job_succeeded(job):
# The job was successful if the success file exists:
Expand Down Expand Up @@ -91,7 +95,8 @@ def update_summary_entry(entry, job, job_times=None):
if "counts" in cache_hits:
counts = cache_hits["counts"]
for lang, lang_hits in counts.items():
hits += lang_hits
if lang in sccache_languages:
hits += lang_hits
if "sccache" not in entry:
entry["sccache"] = {"requests": requests, "hits": hits}
else:
Expand Down

0 comments on commit 8f4cc72

Please sign in to comment.