gpu-parity: pin check requires a clean packages/cultmath and non-empty SHAs; README matches the run

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Nibu 2026-11-11 12:08:24 +00:00
commit 2d30db03e7
2 changed files with 6 additions and 4 deletions

View file

@ -32,7 +32,9 @@ internal static class Program
string head = Git(cultlib, "rev-parse HEAD");
string pin = Git(cultlib, $"rev-parse {PinTag}^{{commit}}");
Console.WriteLine($"CultLib {cultlib}\n HEAD {head}\n {PinTag} {pin}");
if (head != pin) { Console.Error.WriteLine("PIN FAILED: CultLib HEAD is not the pinned tag."); return 3; }
string dirty = Git(cultlib, "status --porcelain -- packages/cultmath");
if (head.Length == 0 || head != pin || dirty.Length != 0)
{ Console.Error.WriteLine("PIN FAILED: CultLib HEAD is not the pinned tag, or packages/cultmath is modified."); return 3; }
var pts = BuildPoints(out int tieCount);
Console.WriteLine($"points: {pts.Length / 4} ({tieCount} tie-constructed, {pts.Length / 4 - tieCount} seeded random)");