Title: more performant build of Geant4 by default · Issue #92 · LDMX-Software/dev-build-context · GitHub
Open Graph Title: more performant build of Geant4 by default · Issue #92 · LDMX-Software/dev-build-context
X Title: more performant build of Geant4 by default · Issue #92 · LDMX-Software/dev-build-context
Description: The default value of a few configuration parameters in Geant4 have values that are helpful for initial development of a Geant4 application but are unhelpful when attempting to scale up to larger production systems. I think, especially wi...
Open Graph Description: The default value of a few configuration parameters in Geant4 have values that are helpful for initial development of a Geant4 application but are unhelpful when attempting to scale up to larger pr...
X Description: The default value of a few configuration parameters in Geant4 have values that are helpful for initial development of a Geant4 application but are unhelpful when attempting to scale up to larger pr...
Opengraph URL: https://github.com/LDMX-Software/dev-build-context/issues/92
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"more performant build of Geant4 by default","articleBody":"The default value of a few configuration parameters in Geant4 have values that are helpful for initial development of a Geant4 application but are unhelpful when attempting to scale up to larger production systems. I think, especially with the introduction of #83 enabling local custom G4 builds, we could update the configuration of G4 to be focused on performance _only_ and guide people to rebuild locally with different configuration if they need more information from the G4 side for debugging/development purposes.\r\n\r\nI use `cmake -LAH` to list all of the available `option`s and noticed a few that have some non-performant defaults.\r\n\r\nOption | Default | Description\r\n---|---|---\r\nCMAKE_BUILD_TYPE | RelWithDebInfo | type of build, this reduces the optimization and enables storing of the debug flags\r\nGEANT4_BUILD_VERBOSE_CODE | ON | include extra comments and checks during the simulation\r\nGEANT4_BUILD_STORE_TRAJECTORY | ON | build full trajectories during the simulation for visualization purposes\r\n\r\nI think the last option could be significantly contributing to simulation time since Geant4 is storing a particles full trajectory during its lifetime which could amount to many hundreds of steps that it needs to allocate and de-allocate on each track.\r\n\r\n### Context\r\nDiscovered while working on https://github.com/LDMX-Software/geant4/issues/13\r\n","author":{"url":"https://github.com/tomeichlersmith","@type":"Person","name":"tomeichlersmith"},"datePublished":"2024-02-07T19:28:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/92/dev-build-context/issues/92"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:adfc9d37-93df-577c-737c-d942eb341c23 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 83A4:1B51C4:826780:A86D87:699293F6 |
| html-safe-nonce | d4e04978a1d8ade58b90f06b42a332d07b9cd08d9792ae22ae99ec32e62daf75 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0E0OjFCNTFDNDo4MjY3ODA6QTg2RDg3OjY5OTI5M0Y2IiwidmlzaXRvcl9pZCI6IjIwMzkyMjE5NDI0NDQyNjY0ODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cc7d15f468dbee79d27f539a81562a77a6266cb7b40d79e9415ed90a58d13b7a |
| hovercard-subject-tag | issue:2123726015 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/LDMX-Software/dev-build-context/92/issue_layout |
| twitter:image | https://opengraph.githubassets.com/769852707f02a9545aae0ed12ea334f0e329026d6197e7a01bf46e7e7523212d/LDMX-Software/dev-build-context/issues/92 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/769852707f02a9545aae0ed12ea334f0e329026d6197e7a01bf46e7e7523212d/LDMX-Software/dev-build-context/issues/92 |
| og:image:alt | The default value of a few configuration parameters in Geant4 have values that are helpful for initial development of a Geant4 application but are unhelpful when attempting to scale up to larger pr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tomeichlersmith |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/LDMX-Software/dev-build-context git https://github.com/LDMX-Software/dev-build-context.git |
| octolytics-dimension-user_id | 20731847 |
| octolytics-dimension-user_login | LDMX-Software |
| octolytics-dimension-repository_id | 267410895 |
| octolytics-dimension-repository_nwo | LDMX-Software/dev-build-context |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 267410895 |
| octolytics-dimension-repository_network_root_nwo | LDMX-Software/dev-build-context |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width