keryx-miner-v0.5.2-PoM

keryx-miner-v0.5.2-PoM

24 авг. 2026 г.

Batch sizing for the PoM v4 grind

Optional performance update — no consensus change, no kernel change, so the prebuilt fatbins and libkeryx-llama.so stay valid.

What it does

v0.5.1 still handed the v4 grind the 512-nonce batch inherited from v3. With the tensor-core solver packing several nonces per block, that left most of the card idle — worst on cards with many SMs — and paid a kernel launch plus a buffer allocation every 512 nonces.

  • The batch is now derived from the device's SM count (384 nonces per SM, floor 8,192). One launch stays well inside a block interval at 10 BPS, so template latency is unchanged.
  • The tile-offsets buffer is allocated once per device and reused across batches.
  • KERYX_POM_V4_BATCH=<n> overrides the batch if you want to tune it by hand.

Measured: RTX 3090 ~600 kH/s → 2.25-2.30 MH/s; RTX 5080 857 kH/s → 3.05 MH/s. The gain grows with the SM count, so RTX 50xx cards benefit most.

Credits

  • @ocminer — large v4 batches and the cached offsets buffer, ported from his fork
  • @GerardMensoif — SM-derived batch sizing and the batch-size measurements (PR #37)