Repository navigation
docs(geant4): document parallel multi-worker Geant4 Wasm execution - #118
Draft
DariuszRozmus wants to merge 1 commit into
Draft
DariuszRozmus wants to merge 1 commit into
DariuszRozmus wants to merge 1 commit into
Conversation
DariuszRozmus
temporarily deployed
to
github-pages
December 2, 2026 19:43 — with
GitHub Actions
Inactive
DariuszRozmus
marked this pull request as draft
December 2, 2026 19:53
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates developer documentation in
for_developersto reflect parallel multi-worker execution for in-browser Geant4 WebAssembly simulations (companion toyaptide/ui#2526, branch2526-geant4-multiworker-simulation).Changes
src/content/docs/frontend/geant4-wasm.md:determineWorkerCount,navigator.hardwareConcurrency - 1, capped byMAX_LOCAL_GEANT4_WORKERS = 3), primary particle splitting (distributePrimaries), and unique cryptographic RNG seeding (/random/setSeedsviaprepareWorkerMacro).getJobTasksStatus,getJobCombinedState,getJobStartTime/getJobEndTime,taskTotals()).mergeGeant4ResultFiles) beforeGeant4ResultsFileParsernormalization and worker termination (markSafeForTermination).-s TOTAL_MEMORY=512MBmemory constraint (RangeError: Array buffer allocation failed), the additive-scorer merging assumption, and scaling paths (INITIAL_MEMORY+ALLOW_MEMORY_GROWTHor Emscripten pthreads).src/content/docs/frontend/simulation-services.md:Local Simulation Service (Geant4 Wasm)flow diagram andProgress Trackingsection for multi-worker execution andjobTasksStatusaggregation viataskTotals().src/content/docs/architecture/data-flow.md:Step 3c: Local Execution (Geant4 Wasm)to describe parallel worker partitioning, RNG seeding, and result merging.Notes
yaptide/uiPR for#2526.