Skip to content

fix: reset statistics timings after GW and HF kernels - #55

Merged
gauravharsha merged 2 commits into
mainfrom
fix-timing-reset
Jun 20, 2026
Merged

fix: reset statistics timings after GW and HF kernels#55
gauravharsha merged 2 commits into
mainfrom
fix-timing-reset

Conversation

@gauravharsha

Copy link
Copy Markdown
Contributor

Summary

  • Add statistics.reset() after printing timings in the GW (gw_cpu_kernel.cpp) and HF (hf_cpu_kernels.cpp) CPU kernels, so per-iteration timing accumulators don't carry over between iterations.
  • Bump GREEN_RELEASE.txt from v1.0.0a0 to v1.0.0a1 for the next tag-driven pre-release.
  • Pin macOS CI dependencies to origin/main (-DGREEN_RELEASE=origin/main) so the build keeps working while GREEN_RELEASE.txt points at a tag before it's propagated to dependent repos.
  • Ignore .cache/ in .gitignore.

Notes

The version bump is bundled together with the timing fix in a single commit — no separate release-prep commit. The green_tag.yaml workflow will propagate the tag and reset GREEN_RELEASE.txt back to origin/main post-release.

🤖 Generated with Claude Code

Add statistics.reset() after printing timings in the GW and HF CPU
kernels so per-iteration timing accumulators do not carry over.

Also bump GREEN_RELEASE.txt to v1.0.0a1, pin macOS CI deps to
origin/main during the tag window, and ignore .cache/ in git.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to prevent per-iteration timing measurements from accumulating across iterations in the GW and HF CPU kernels, while also preparing the repository for the next pre-release and adjusting CI/ignore settings to keep builds working during the release transition.

Changes:

  • Add statistics.reset() after timing output in GW (gw_cpu_kernel.cpp) and HF (hf_cpu_kernels.cpp) CPU kernels.
  • Update GREEN_RELEASE.txt to v1.0.0a1 for the next tag-driven pre-release.
  • Pin macOS CI builds to -DGREEN_RELEASE=origin/main and ignore .cache/ via .gitignore.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/hf_cpu_kernels.cpp Reset HF timing accumulators after printing, to avoid carry-over between iterations.
src/gw_cpu_kernel.cpp Reset GW timing accumulators after printing, to avoid carry-over between iterations.
GREEN_RELEASE.txt Bump release selector to v1.0.0a1 for the next pre-release tag.
.gitignore Ignore .cache/* to avoid committing cache artifacts.
.github/workflows/test_macos.yaml Force macOS CI dependency selection to origin/main via -DGREEN_RELEASE=origin/main.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/test_macos.yaml
Comment thread GREEN_RELEASE.txt

@egull egull left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks ok.

Add the missing statistics.reset() after printing timings in the GF2
solver so per-iteration timing accumulators do not carry over.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@gauravharsha
gauravharsha merged commit 4b6036d into main Jun 20, 2026
2 checks passed
@gauravharsha
gauravharsha deleted the fix-timing-reset branch June 20, 2026 19:55
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.

3 participants