madgraph5 / madgraph4gpu

GPU development for the Madgraph5_aMC@NLO event generator software package
30 stars 32 forks source link

Improve handling of model parameters #448

Open valassi opened 2 years ago

valassi commented 2 years ago

This very generic task "Improve handling of model parameters" is a follow up to #439, which was specifically for EFT models after inroducing the running of alphas. That specific issue is closed by PR #446, which however only works with the branch where parameters are constexpr ('#ifdef MGONGPU_HARDCODE_PARAM'), while it does not work if parameters are in c++ memory or in cuda constant memory.

It is also a followup to #39 and its PR #306, which were about introducing a first version of computations where parameters are hardcoded constexpr (the '#ifdef MGONGPU_HARDCODE_PARAM' above), rather than variables in memory or in cuda constant memory. That patch was completed and depended upon introducing a simple complex class cxsmpl with constexpr arithmetics ie issue #307 and its PR #327, which have also been completed.

It is also related to the class design issues discussed in #356 (even if those are a bit orthogonal).

It is also related to some possible future extensions to allow event by event reweighting with differenet parameter sets (#447).

More concrete details below.

valassi commented 2 years ago

To be more concrete, following some ideas from #439, I think that it would be nice to implement the following:

valassi commented 1 year ago

As part of #630 and WIP MR #706 I am doing tests changing the top mass.

If I change the card.dat, then the card.inc for fortran is regenerated. However the hardcoded parameteres for cpp are not. So there is certainly at least one bug to fix: HRDCOD=1 parameters should be regenerated from the param card.dat