Skip to content

partial fix for EFT processes after merging alphas (only workd with HRDCOD=1 for now)#446

Merged
valassi merged 74 commits intomadgraph5:masterfrom
valassi:heft
May 9, 2022
Merged

partial fix for EFT processes after merging alphas (only workd with HRDCOD=1 for now)#446
valassi merged 74 commits intomadgraph5:masterfrom
valassi:heft

Conversation

@valassi
Copy link
Member

@valassi valassi commented May 6, 2022

This is a WIP PR for #439.

Now it is possible to build heftggh after the alphas merge, but ONLY in the hardcoded HRDCOD=1 mode.

The problem with the non hardcoded mode is that several EFT parameters like mdl_MH__exp__6 which are needed in the calculation of couplings from alphas are not available in the G2COUP kernel. Various options

  • force the use of HRDCOD=1 (this works, because the parameters are constexpr in a namespace)
  • compute the Gs on the host rather than on the device (just get mdl_MH__exp__6 from the singleton Parameters class on the host)
  • (probably the best, but most complex) copy frm host to device the parameters like mdl_MH__exp__6 from the singleton Parameters class

Note that the last one has some overlap with what we do with cIPC/cIPD. Maybe easiest to generalize the cIPC/cIPD to all parameters? Overkill for the other cases? In any case the amount of global memory (or even constant memory) these would occupy is very little.

valassi added 22 commits May 6, 2022 15:32
…ted with c0c2768 (BEFORE THE ALPHAS PR)

This is the bginning of a patch to analyse and fix madgraph5#439
This fixes the cuda build in 'make HRDCOD=1'
../../src/Parameters_heft.h(116): error: expression must have a constant value
../../src/Parameters_heft.h(116): note #2703-D: cannot call non-constexpr function "pow(double, double) throw()"
/usr/local/cuda-11.6/include/crt/math_functions.h(4990): here
Note that g++ was succeeding (pow being constexpr is a gcc extension)
…as all ok)

Revert "[heft] TMP move over codegen c0c2768 the three recent backports"
This reverts commit ed65cda.

Revert "[heft] TMP move codegen back to c0c2768"
This reverts commit 4bb80a2.
…ixes the build (ONLY for HRDCOD=1) madgraph5#439

The build without HRDCOD=1 however i sstill failing
@valassi valassi self-assigned this May 6, 2022
@valassi valassi marked this pull request as draft May 6, 2022 17:57
@valassi
Copy link
Member Author

valassi commented May 6, 2022

In a way the question is, what determines what is in self.parms2order and self.coup2order? These are the only pieces of the Parameters.h file that are presently copied to constant memory...

@valassi
Copy link
Member Author

valassi commented May 9, 2022

I have hopefully completed a PARTIAL patch, which indeed only works for EFTs with hardcoded parameters. The other options remain open.

It took quite some time. There are many corners that needed secial fixes. Examples

  • parameters are double but ME precision can be float, there is a psecial handling if using SIMD because cannot multiply a scalar double and a float vector
  • in hardcoded mode I use cxsmpl but the ME calculations need cxtype and some casts are needed
  • a constexpr cxsmpl cannot be used in device mode
  • etc etc

Now all issues should be ok both for heftggh and the standard 5 processes.

I am running a ful set of tests, and I will merge this. Then the other options I will file as a separate non urgent followup issue.

valassi added 3 commits May 9, 2022 19:24
…ll ok

STARTED  AT Mon May  9 15:35:15 CEST 2022
ENDED(1) AT Mon May  9 18:07:17 CEST 2022
ENDED(2) AT Mon May  9 18:42:28 CEST 2022
ENDED(3) AT Mon May  9 18:46:55 CEST 2022
ENDED(4) AT Mon May  9 18:50:03 CEST 2022
ENDED(5) AT Mon May  9 18:53:06 CEST 2022
…heftggh only builds ok with HRDCOD=1)

OK: all logs are now from the latest code, check using
  grep -h DATE tput/logs_*/*txt | sort
@valassi valassi marked this pull request as ready for review May 9, 2022 17:56
@valassi valassi changed the title WIP: partial fix for EFT processes after merging alphas (only workd with HRDCOD=1 for now) partial fix for EFT processes after merging alphas (only workd with HRDCOD=1 for now) May 9, 2022
@valassi
Copy link
Member Author

valassi commented May 9, 2022

All checks have completed. I am merging this.

This is only a partial patch, but it is fully functional. I have stripped off a few more things to do in #448, specifically
#448 (comment)

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