Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: susy tests for issue 826 #853

Closed
wants to merge 49 commits into from
Closed

WIP: susy tests for issue 826 #853

wants to merge 49 commits into from

Conversation

valassi
Copy link
Member

@valassi valassi commented May 31, 2024

This is a WIP PR with various tests for issue #826. This includes in particular Olivier's PR #850 and #852.

Presently not meant for merging... issue #826 is not fixed.

valassi and others added 30 commits May 30, 2024 11:39
…ec now match in the former (madgraph5#825 is fixed), but there is still no xsec in the latter (madgraph5#826 is not fixed)

./tmad/teeMadX.sh -susyggtt -susyggt1t1 +10x
…aph5#850 - note that HelAmps.h changes in (almost?) all processes!

(NB it is HelAmps.h that changes and not Parameters.h as I wrote elsewhere by mistake)
…h launch PR madgraph5#851

git checkout upstream/master $(git ls-tree --name-only HEAD */CODE*txt)
…to global flags to fix a SIGFPE in Fortran rotxx (see madgraph5#826)
… global flags to fix a SIGFPE in Fortran rotxx (see madgraph5#826)

(NB: if you run bin/generate_events, the runcard value supersedes that in make_opts!)
…o -O2 in global_flags to fix all SIGFPEs in Frtran (madgraph5#826)
…o -O1 in global_flags to fix all SIGFPEs in Frtran (madgraph5#826)
…susy_gg_t1t1.mad run_card.dat and make_opts

Revert "[susy] in susy_gg_t1t1.mad runcard and make_opts, try to change -O2 to -O1 in global_flags to fix all SIGFPEs in Frtran (madgraph5#826)"
This reverts commit 7b160e8.

Revert "[susy] in susy_gg_t1t1.mad runcard and make_opts, add -g in global_flags to debug SIGFPEs in Frtran (madgraph5#826)"
This reverts commit dd4df95.

Revert "[susy] in susy_gg_t1t1.mad runcard and make_opts, try to change -O3 to -O2 in global_flags to fix all SIGFPEs in Frtran (madgraph5#826)"
This reverts commit 40ef953.

Revert "[susy] in susy_gg_t1t1.mad runcard, try to add -fno-tree-vectorize to global flags to fix a SIGFPE in Fortran rotxx (see madgraph5#826)"
This reverts commit 6d3ebbc.

Revert "[susy] in susy_gg_t1t1.mad make_opts, try to add -fno-tree-vectorize to global flags to fix a SIGFPE in Fortran rotxx (see madgraph5#826)"
This reverts commit b010198.
…rangely, clang formatting was not complaining?)
… comma is allowed in the std::map initializer list
Note: cuda compilation 'make -j BACKEND=cuda' fails with
  coloramps.h(14): error: dynamic initialization is not supported for a __device__ variable
…p as constexpr, this fails with a different error

ccache /usr/local/cuda-12.0/bin/nvcc  -I. -I../../src  -Xcompiler -O3 -gencode arch=compute_70,code=compute_70 -gencode arch=compute_70,code=sm_70 -lineinfo -use_fast_math -I/usr/local/cuda-12.0/include/ -DUSE_NVTX  -std=c++17  -ccbin /usr/lib64/ccache/g++ -DMGONGPU_FPTYPE_DOUBLE -DMGONGPU_FPTYPE2_DOUBLE -Xcompiler -fPIC -c -x cu CPPProcess.cc -o CPPProcess_cuda.o
coloramps.h(14): error: expression must have a constant value
coloramps.h(14): note #2703-D: cannot call non-constexpr function "std::map<_Key, _Tp, _Compare, _Alloc>::map(std::initializer_list<std::map<_Key, _Tp, _Compare, _Alloc>::value_type>, const _Compare &, const std::map<_Key, _Tp, _Compare, _Alloc>::allocator_type &) [with _Key=int, _Tp=int, _Compare=std::less<int>, _Alloc=std::allocator<std::pair<const int, int>>]"
/usr/include/c++/11/bits/stl_map.h(228): here
coloramps.h(14): error: a constexpr variable must have a literal type or a reference type
CPPProcess.cc(1012): error: no operator "[]" matches these operands
            operand types are: const std::map<int, int, std::less<int>, std::allocator<std::pair<const int, int>>> [ const unsigned int ]
3 errors detected in the compilation of "CPPProcess.cc".
…making the map constexpr

Revert "[susy] in susy_gg_t1t1.mad, try to fix coloramps.h by defining the map as constexpr, this fails with a different error"
This reverts commit 38b3afd.
…raph5#850 and madgraph5#860 for xsec mismatch madgraph5#825) into susy

Fix conflicts:
	epochX/cudacpp/CODEGEN/generateAndCompare.sh
@valassi
Copy link
Member Author

valassi commented Jun 27, 2024

FWIW I upgraded this to the latest upstream/master. In any case I think that this will not be merged as such. Rather, what will be merged to fix the iconfig-channel mapping issue will be a variation of pieces of Olivier's #852 and of piecese of this one.

FIRST I want to merge #857 for rotxxx however.

valassi added 6 commits June 28, 2024 00:07
…and valgrind fixes madgraph5#869) into susy

Fix conflicts in MG5aMC/mg5amcnlo (keep the latest gpucpp_826 version including the recent gpucpp changes)
… test a different iconfig

In particular: the following triggers a SIGFPE reported in madgraph5#855 (crash in rotxxx that can be fixed adding volatile?)
  ./tmad/madX.sh -ggttgg -iconfig 104 -makeclean

This also triggers a similar SIGFPE (initially reported in madgraph5#826)
  ./tmad/madX.sh -susyggt1t1 -iconfig 2 -makeclean
…ng rotxxx crashes) into susy

Fix conflicts in MG5aMC/mg5amcnlo (keep the latest gpucpp_826 version including the recent gpucpp changes)
@valassi
Copy link
Member Author

valassi commented Jun 27, 2024

FWIW I upgraded this to the latest upstream/master. But again this will not be merged.
There are 10 CI failures (including 7 codegen) in https://github.com/madgraph5/madgraph4gpu/actions/runs/9704459899

valassi added a commit to valassi/madgraph4gpu that referenced this pull request Jun 28, 2024
…y branch (WIP PR madgraph5#853) to allow cherry-picking the next commit

git checkout 335d6d2 susy_gg_t1t1.mad/CODEGEN_mad_susy_gg_t1t1_log.txt
valassi added a commit to valassi/madgraph4gpu that referenced this pull request Jun 28, 2024
…Formatting.sh

** NB: the code is now at the same level as Olivier's PR madgraph5#852, but also includes my relevant commit history from PR madgraph5#853 **
** NB: in particular, susy_gg_t1t1.mad includes my proposal for the coloramps.h mappings **

Revert "[susy] in CODEGEN/checkFormatting.sh, add coloramps.h to the list of files checked with clang formatting"
This reverts commit 08f4ab2.
@valassi
Copy link
Member Author

valassi commented Jun 28, 2024

I am closing this. This is superseded by MR #873, providing several fixes in this area (and reusing several commits originally developed here in WIP PR #853).

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.

2 participants