Repository navigation
MadMatrix: UMAMI setters/getters and model/fptype-tagged libraries - #317
Open
zeniheisser wants to merge 1 commit into
Open
zeniheisser wants to merge 1 commit into
zeniheisser wants to merge 1 commit into
Conversation
…braries
- umami_set_parameter / umami_get_parameter: runtime access to independent
model parameters (by name or SLHA location) and to parton masses, for the
MadMatrix backends (cpu/simd/gpu umami.cc) and the mg7 C++ api; the
exporters register every scalar parameter/coupling in a name -> pointer
table. Couplings and parameters are registered into separate maps so that
FPTYPE=f builds compile (couplings are cxtype, parameters stay double).
- Process and common libraries now carry the model name and FPTYPE
(libmadmatrix_<model>_<proc>_<backend>_<fptype>.so), so builds for
different models/precisions out of the same directory never collide;
me_path in subprocesses.json gains an {fptype} placeholder, resolved by
mg7 launch.py and gridpack.py from [run] precision.
- madmatrix.mk/madmatrix_src.mk pass FPTYPE through to the common library
build and clean targets.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been 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.
Original implementation was written as part of the MadtRex implementation, but I had Claude port it to a separate branch to avoid a huge PR that both introduces MadtRex and modifies existing structures.
Changes: explicit inclusion of physics model and FPTYPE in the names of compiled libraries; necessary in MadtRex to differentiate between different models running on the same backend.
UMAMI parameter setters/getters: Implements the functions in the UMAMI interface to set parameters in a loaded library, rather than having to reparse the entire param_card.dat for every library launch. Probably not useful, but it could also be used to run event generation with varying physics parameters (e.g. a scan).
Claude's comments: