Skip to content

Add BOINC support - #37

Open
tobfal wants to merge 6 commits into
MinecraftAtHome:mainfrom
tobfal:feat/boinc
Open

tobfal wants to merge 6 commits into
MinecraftAtHome:mainfrom
tobfal:feat/boinc

Conversation

@tobfal

@tobfal tobfal commented Nov 13, 2026

Copy link
Copy Markdown

Adds BOINC support. This also includes the --end flag and the makefile fixes from my two earlier PRs (#33 and #34), which I closed in favour of this one.

Build with make BOINC=1. The BOINC build reads the seed range from --start/--end, gets the GPU from the client, checkpoints and resumes, reports progress, and writes the results to out.txt at the end. BOINC.md has the details for setting it up on the server.

While doing this I also fixed two problems with --end:

  • On shutdown the CPU threads were stopped before the GPU finished its last batch, so candidates from that batch could get lost.
  • The last batch goes past --end, so results from the next range could show up twice.

CI now builds the BOINC variants too.

Tested on an RTX 5070 on Windows and Linux (in the CI docker image). Killing a task mid-run and resuming gives the same out.txt as an uninterrupted run, and Windows and Linux output is identical for the same range. I haven't tested it with a real BOINC client yet, only in standalone mode.

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.

1 participant