Skip to content

Commit

Permalink
[oct23av] regenerate 7 pp_tt012j.mad, there are two issues: clang for…
Browse files Browse the repository at this point in the history
…matting, and especially the build will fail.

Codebase includes merging commit a6731bd (Olivier Wed Aug 23 13:23:12 2023 +0200)
This uses Olivier's 'fix_mirror' branch for PR madgraph5#754

In particular
  a6731bd       Olivier Mattelaer       Wed Aug 23 13:23:12 2023 +0200  Merge branch 'fix_mirror'
  2556cdd       Olivier Mattelaer       Wed Aug 23 09:27:38 2023 +0200  avoid that mirroring is reset by the plugin

These lines fail the build (as well as clang formatting)
[NOT OK] Check formatting in: pp_tt012j.mad/SubProcesses/P0_uux_ttx/CPPProcess.cc
786c786
<     constexpr int helcolDenominators[1] = { 36,36 }; // assume nprocesses == 1 (madgraph5#272 and madgraph5#343)
---
>     constexpr int helcolDenominators[1] = { 36, 36 }; // assume nprocesses == 1 (madgraph5#272 and madgraph5#343)
The same happens in each P subdirectory.

Build errors:
  ccache /usr/local/cuda-12.0/bin/nvcc   -Xcompiler -O3 -lineinfo -I. -I../../src -I/usr/local/cuda-12.0/include/ -DUSE_NVTX -gencode arch=compute_70,code=compute_70 -gencode arch=compute_70,code=sm_70 -use_fast_math -std=c++17  -ccbin /usr/lib64/ccache/g++ -DMGONGPU_FPTYPE_DOUBLE -DMGONGPU_FPTYPE2_DOUBLE -Xcompiler -fPIC -c gCPPProcess.cu -o gCPPProcess.o
  gCPPProcess.cu(779): error: static assertion failed with "Assume nprocesses == 1"
  gCPPProcess.cu(786): error: too many initializer values
  2 errors detected in the compilation of "gCPPProcess.cu".
  • Loading branch information
valassi committed Oct 26, 2023
1 parent 2a67667 commit 1903d30
Show file tree
Hide file tree
Showing 37 changed files with 349 additions and 349 deletions.
602 changes: 301 additions & 301 deletions epochX/cudacpp/pp_tt012j.mad/CODEGEN_mad_pp_tt012j_log.txt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -775,15 +775,15 @@ namespace mg5amcCpu
// These variable are not used anywhere else in the code and their scope is limited to this sanity check
{
// nprocesses>1 was last observed for "mirror processes" in uux_ttx in the 270 branch (see issue #343 and PRs #360 and #396)
constexpr int nprocesses = 1;
constexpr int nprocesses = 2;
static_assert( nprocesses == 1, "Assume nprocesses == 1" );
// process_id corresponds to the index of DSIG1 Fortran functions (must be 1 because cudacpp is unable to handle DSIG2)
constexpr int process_id = 1; // code generation source: madevent + cudacpp exporter
static_assert( process_id == 1, "Assume process_id == 1" );
}

// Denominators: spins, colors and identical particles
constexpr int helcolDenominators[1] = { 36 }; // assume nprocesses == 1 (#272 and #343)
constexpr int helcolDenominators[1] = { 36,36 }; // assume nprocesses == 1 (#272 and #343)

#ifdef __CUDACC__
// Remember: in CUDA this is a kernel for one event, in c++ this processes n events
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DATA (MIRRORPROCS(I),I=1,1)/.FALSE./
DATA (MIRRORPROCS(I),I=1,1)/.TRUE./
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1 u u~ > t t~,c c~ > t t~,d d~ > t t~,s s~ > t t~
mirror none
mirror u~ u > t t~,c~ c > t t~,d~ d > t t~,s~ s > t t~
Original file line number Diff line number Diff line change
Expand Up @@ -855,15 +855,15 @@ namespace mg5amcCpu
// These variable are not used anywhere else in the code and their scope is limited to this sanity check
{
// nprocesses>1 was last observed for "mirror processes" in uux_ttx in the 270 branch (see issue #343 and PRs #360 and #396)
constexpr int nprocesses = 1;
constexpr int nprocesses = 2;
static_assert( nprocesses == 1, "Assume nprocesses == 1" );
// process_id corresponds to the index of DSIG1 Fortran functions (must be 1 because cudacpp is unable to handle DSIG2)
constexpr int process_id = 1; // code generation source: madevent + cudacpp exporter
static_assert( process_id == 1, "Assume process_id == 1" );
}

// Denominators: spins, colors and identical particles
constexpr int helcolDenominators[1] = { 96 }; // assume nprocesses == 1 (#272 and #343)
constexpr int helcolDenominators[1] = { 96,96 }; // assume nprocesses == 1 (#272 and #343)

#ifdef __CUDACC__
// Remember: in CUDA this is a kernel for one event, in c++ this processes n events
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DATA (MIRRORPROCS(I),I=1,1)/.FALSE./
DATA (MIRRORPROCS(I),I=1,1)/.TRUE./
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1 g u > t t~ u,g c > t t~ c,g d > t t~ d,g s > t t~ s
mirror none
mirror u g > t t~ u,c g > t t~ c,d g > t t~ d,s g > t t~ s
Original file line number Diff line number Diff line change
Expand Up @@ -855,15 +855,15 @@ namespace mg5amcCpu
// These variable are not used anywhere else in the code and their scope is limited to this sanity check
{
// nprocesses>1 was last observed for "mirror processes" in uux_ttx in the 270 branch (see issue #343 and PRs #360 and #396)
constexpr int nprocesses = 1;
constexpr int nprocesses = 2;
static_assert( nprocesses == 1, "Assume nprocesses == 1" );
// process_id corresponds to the index of DSIG1 Fortran functions (must be 1 because cudacpp is unable to handle DSIG2)
constexpr int process_id = 1; // code generation source: madevent + cudacpp exporter
static_assert( process_id == 1, "Assume process_id == 1" );
}

// Denominators: spins, colors and identical particles
constexpr int helcolDenominators[1] = { 96 }; // assume nprocesses == 1 (#272 and #343)
constexpr int helcolDenominators[1] = { 96,96 }; // assume nprocesses == 1 (#272 and #343)

#ifdef __CUDACC__
// Remember: in CUDA this is a kernel for one event, in c++ this processes n events
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DATA (MIRRORPROCS(I),I=1,1)/.FALSE./
DATA (MIRRORPROCS(I),I=1,1)/.TRUE./
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1 g u~ > t t~ u~,g c~ > t t~ c~,g d~ > t t~ d~,g s~ > t t~ s~
mirror none
mirror u~ g > t t~ u~,c~ g > t t~ c~,d~ g > t t~ d~,s~ g > t t~ s~
Original file line number Diff line number Diff line change
Expand Up @@ -855,15 +855,15 @@ namespace mg5amcCpu
// These variable are not used anywhere else in the code and their scope is limited to this sanity check
{
// nprocesses>1 was last observed for "mirror processes" in uux_ttx in the 270 branch (see issue #343 and PRs #360 and #396)
constexpr int nprocesses = 1;
constexpr int nprocesses = 2;
static_assert( nprocesses == 1, "Assume nprocesses == 1" );
// process_id corresponds to the index of DSIG1 Fortran functions (must be 1 because cudacpp is unable to handle DSIG2)
constexpr int process_id = 1; // code generation source: madevent + cudacpp exporter
static_assert( process_id == 1, "Assume process_id == 1" );
}

// Denominators: spins, colors and identical particles
constexpr int helcolDenominators[1] = { 36 }; // assume nprocesses == 1 (#272 and #343)
constexpr int helcolDenominators[1] = { 36,36 }; // assume nprocesses == 1 (#272 and #343)

#ifdef __CUDACC__
// Remember: in CUDA this is a kernel for one event, in c++ this processes n events
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DATA (MIRRORPROCS(I),I=1,1)/.FALSE./
DATA (MIRRORPROCS(I),I=1,1)/.TRUE./
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1 u u~ > t t~ g,c c~ > t t~ g,d d~ > t t~ g,s s~ > t t~ g
mirror none
mirror u~ u > t t~ g,c~ c > t t~ g,d~ d > t t~ g,s~ s > t t~ g
Original file line number Diff line number Diff line change
Expand Up @@ -1360,15 +1360,15 @@ namespace mg5amcCpu
// These variable are not used anywhere else in the code and their scope is limited to this sanity check
{
// nprocesses>1 was last observed for "mirror processes" in uux_ttx in the 270 branch (see issue #343 and PRs #360 and #396)
constexpr int nprocesses = 1;
constexpr int nprocesses = 2;
static_assert( nprocesses == 1, "Assume nprocesses == 1" );
// process_id corresponds to the index of DSIG1 Fortran functions (must be 1 because cudacpp is unable to handle DSIG2)
constexpr int process_id = 1; // code generation source: madevent + cudacpp exporter
static_assert( process_id == 1, "Assume process_id == 1" );
}

// Denominators: spins, colors and identical particles
constexpr int helcolDenominators[1] = { 96 }; // assume nprocesses == 1 (#272 and #343)
constexpr int helcolDenominators[1] = { 96,96 }; // assume nprocesses == 1 (#272 and #343)

#ifdef __CUDACC__
// Remember: in CUDA this is a kernel for one event, in c++ this processes n events
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DATA (MIRRORPROCS(I),I=1,1)/.FALSE./
DATA (MIRRORPROCS(I),I=1,1)/.TRUE./
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1 g u > t t~ g u,g c > t t~ g c,g d > t t~ g d,g s > t t~ g s
mirror none
mirror u g > t t~ g u,c g > t t~ g c,d g > t t~ g d,s g > t t~ g s
Original file line number Diff line number Diff line change
Expand Up @@ -1360,15 +1360,15 @@ namespace mg5amcCpu
// These variable are not used anywhere else in the code and their scope is limited to this sanity check
{
// nprocesses>1 was last observed for "mirror processes" in uux_ttx in the 270 branch (see issue #343 and PRs #360 and #396)
constexpr int nprocesses = 1;
constexpr int nprocesses = 2;
static_assert( nprocesses == 1, "Assume nprocesses == 1" );
// process_id corresponds to the index of DSIG1 Fortran functions (must be 1 because cudacpp is unable to handle DSIG2)
constexpr int process_id = 1; // code generation source: madevent + cudacpp exporter
static_assert( process_id == 1, "Assume process_id == 1" );
}

// Denominators: spins, colors and identical particles
constexpr int helcolDenominators[1] = { 96 }; // assume nprocesses == 1 (#272 and #343)
constexpr int helcolDenominators[1] = { 96,96 }; // assume nprocesses == 1 (#272 and #343)

#ifdef __CUDACC__
// Remember: in CUDA this is a kernel for one event, in c++ this processes n events
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DATA (MIRRORPROCS(I),I=1,1)/.FALSE./
DATA (MIRRORPROCS(I),I=1,1)/.TRUE./
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1 g u~ > t t~ g u~,g c~ > t t~ g c~,g d~ > t t~ g d~,g s~ > t t~ g s~
mirror none
mirror u~ g > t t~ g u~,c~ g > t t~ g c~,d~ g > t t~ g d~,s~ g > t t~ g s~
Original file line number Diff line number Diff line change
Expand Up @@ -935,15 +935,15 @@ namespace mg5amcCpu
// These variable are not used anywhere else in the code and their scope is limited to this sanity check
{
// nprocesses>1 was last observed for "mirror processes" in uux_ttx in the 270 branch (see issue #343 and PRs #360 and #396)
constexpr int nprocesses = 1;
constexpr int nprocesses = 2;
static_assert( nprocesses == 1, "Assume nprocesses == 1" );
// process_id corresponds to the index of DSIG1 Fortran functions (must be 1 because cudacpp is unable to handle DSIG2)
constexpr int process_id = 1; // code generation source: madevent + cudacpp exporter
static_assert( process_id == 1, "Assume process_id == 1" );
}

// Denominators: spins, colors and identical particles
constexpr int helcolDenominators[1] = { 36 }; // assume nprocesses == 1 (#272 and #343)
constexpr int helcolDenominators[1] = { 36,36 }; // assume nprocesses == 1 (#272 and #343)

#ifdef __CUDACC__
// Remember: in CUDA this is a kernel for one event, in c++ this processes n events
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DATA (MIRRORPROCS(I),I=1,1)/.FALSE./
DATA (MIRRORPROCS(I),I=1,1)/.TRUE./
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1 u c > t t~ u c,u d > t t~ u d,u s > t t~ u s,c d > t t~ c d,c s > t t~ c s,d s > t t~ d s
mirror none
mirror c u > t t~ u c,d u > t t~ u d,s u > t t~ u s,d c > t t~ c d,s c > t t~ c s,s d > t t~ d s
Original file line number Diff line number Diff line change
Expand Up @@ -941,15 +941,15 @@ namespace mg5amcCpu
// These variable are not used anywhere else in the code and their scope is limited to this sanity check
{
// nprocesses>1 was last observed for "mirror processes" in uux_ttx in the 270 branch (see issue #343 and PRs #360 and #396)
constexpr int nprocesses = 1;
constexpr int nprocesses = 2;
static_assert( nprocesses == 1, "Assume nprocesses == 1" );
// process_id corresponds to the index of DSIG1 Fortran functions (must be 1 because cudacpp is unable to handle DSIG2)
constexpr int process_id = 1; // code generation source: madevent + cudacpp exporter
static_assert( process_id == 1, "Assume process_id == 1" );
}

// Denominators: spins, colors and identical particles
constexpr int helcolDenominators[1] = { 36 }; // assume nprocesses == 1 (#272 and #343)
constexpr int helcolDenominators[1] = { 36,36 }; // assume nprocesses == 1 (#272 and #343)

#ifdef __CUDACC__
// Remember: in CUDA this is a kernel for one event, in c++ this processes n events
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DATA (MIRRORPROCS(I),I=1,1)/.FALSE./
DATA (MIRRORPROCS(I),I=1,1)/.TRUE./
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1 u c~ > t t~ u c~,u d~ > t t~ u d~,u s~ > t t~ u s~,c u~ > t t~ c u~,c d~ > t t~ c d~,c s~ > t t~ c s~,d u~ > t t~ d u~,d c~ > t t~ d c~,d s~ > t t~ d s~,s u~ > t t~ s u~,s c~ > t t~ s c~,s d~ > t t~ s d~
mirror none
mirror c~ u > t t~ u c~,d~ u > t t~ u d~,s~ u > t t~ u s~,u~ c > t t~ c u~,d~ c > t t~ c d~,s~ c > t t~ c s~,u~ d > t t~ d u~,c~ d > t t~ d c~,s~ d > t t~ d s~,u~ s > t t~ s u~,c~ s > t t~ s c~,d~ s > t t~ s d~
Original file line number Diff line number Diff line change
Expand Up @@ -941,15 +941,15 @@ namespace mg5amcCpu
// These variable are not used anywhere else in the code and their scope is limited to this sanity check
{
// nprocesses>1 was last observed for "mirror processes" in uux_ttx in the 270 branch (see issue #343 and PRs #360 and #396)
constexpr int nprocesses = 1;
constexpr int nprocesses = 2;
static_assert( nprocesses == 1, "Assume nprocesses == 1" );
// process_id corresponds to the index of DSIG1 Fortran functions (must be 1 because cudacpp is unable to handle DSIG2)
constexpr int process_id = 1; // code generation source: madevent + cudacpp exporter
static_assert( process_id == 1, "Assume process_id == 1" );
}

// Denominators: spins, colors and identical particles
constexpr int helcolDenominators[1] = { 36 }; // assume nprocesses == 1 (#272 and #343)
constexpr int helcolDenominators[1] = { 36,36 }; // assume nprocesses == 1 (#272 and #343)

#ifdef __CUDACC__
// Remember: in CUDA this is a kernel for one event, in c++ this processes n events
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DATA (MIRRORPROCS(I),I=1,1)/.FALSE./
DATA (MIRRORPROCS(I),I=1,1)/.TRUE./
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1 u u~ > t t~ c c~,u u~ > t t~ d d~,u u~ > t t~ s s~,c c~ > t t~ u u~,c c~ > t t~ d d~,c c~ > t t~ s s~,d d~ > t t~ u u~,d d~ > t t~ c c~,d d~ > t t~ s s~,s s~ > t t~ u u~,s s~ > t t~ c c~,s s~ > t t~ d d~
mirror none
mirror u~ u > t t~ c c~,u~ u > t t~ d d~,u~ u > t t~ s s~,c~ c > t t~ u u~,c~ c > t t~ d d~,c~ c > t t~ s s~,d~ d > t t~ u u~,d~ d > t t~ c c~,d~ d > t t~ s s~,s~ s > t t~ u u~,s~ s > t t~ c c~,s~ s > t t~ d d~
Original file line number Diff line number Diff line change
Expand Up @@ -1360,15 +1360,15 @@ namespace mg5amcCpu
// These variable are not used anywhere else in the code and their scope is limited to this sanity check
{
// nprocesses>1 was last observed for "mirror processes" in uux_ttx in the 270 branch (see issue #343 and PRs #360 and #396)
constexpr int nprocesses = 1;
constexpr int nprocesses = 2;
static_assert( nprocesses == 1, "Assume nprocesses == 1" );
// process_id corresponds to the index of DSIG1 Fortran functions (must be 1 because cudacpp is unable to handle DSIG2)
constexpr int process_id = 1; // code generation source: madevent + cudacpp exporter
static_assert( process_id == 1, "Assume process_id == 1" );
}

// Denominators: spins, colors and identical particles
constexpr int helcolDenominators[1] = { 72 }; // assume nprocesses == 1 (#272 and #343)
constexpr int helcolDenominators[1] = { 72,72 }; // assume nprocesses == 1 (#272 and #343)

#ifdef __CUDACC__
// Remember: in CUDA this is a kernel for one event, in c++ this processes n events
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DATA (MIRRORPROCS(I),I=1,1)/.FALSE./
DATA (MIRRORPROCS(I),I=1,1)/.TRUE./
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1 u u~ > t t~ g g,c c~ > t t~ g g,d d~ > t t~ g g,s s~ > t t~ g g
mirror none
mirror u~ u > t t~ g g,c~ c > t t~ g g,d~ d > t t~ g g,s~ s > t t~ g g
Original file line number Diff line number Diff line change
Expand Up @@ -1045,15 +1045,15 @@ namespace mg5amcCpu
// These variable are not used anywhere else in the code and their scope is limited to this sanity check
{
// nprocesses>1 was last observed for "mirror processes" in uux_ttx in the 270 branch (see issue #343 and PRs #360 and #396)
constexpr int nprocesses = 1;
constexpr int nprocesses = 2;
static_assert( nprocesses == 1, "Assume nprocesses == 1" );
// process_id corresponds to the index of DSIG1 Fortran functions (must be 1 because cudacpp is unable to handle DSIG2)
constexpr int process_id = 1; // code generation source: madevent + cudacpp exporter
static_assert( process_id == 1, "Assume process_id == 1" );
}

// Denominators: spins, colors and identical particles
constexpr int helcolDenominators[1] = { 36 }; // assume nprocesses == 1 (#272 and #343)
constexpr int helcolDenominators[1] = { 36,36 }; // assume nprocesses == 1 (#272 and #343)

#ifdef __CUDACC__
// Remember: in CUDA this is a kernel for one event, in c++ this processes n events
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DATA (MIRRORPROCS(I),I=1,1)/.FALSE./
DATA (MIRRORPROCS(I),I=1,1)/.TRUE./
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1 u u~ > t t~ u u~,c c~ > t t~ c c~,d d~ > t t~ d d~,s s~ > t t~ s s~
mirror none
mirror u~ u > t t~ u u~,c~ c > t t~ c c~,d~ d > t t~ d d~,s~ s > t t~ s s~
Original file line number Diff line number Diff line change
Expand Up @@ -935,15 +935,15 @@ namespace mg5amcCpu
// These variable are not used anywhere else in the code and their scope is limited to this sanity check
{
// nprocesses>1 was last observed for "mirror processes" in uux_ttx in the 270 branch (see issue #343 and PRs #360 and #396)
constexpr int nprocesses = 1;
constexpr int nprocesses = 2;
static_assert( nprocesses == 1, "Assume nprocesses == 1" );
// process_id corresponds to the index of DSIG1 Fortran functions (must be 1 because cudacpp is unable to handle DSIG2)
constexpr int process_id = 1; // code generation source: madevent + cudacpp exporter
static_assert( process_id == 1, "Assume process_id == 1" );
}

// Denominators: spins, colors and identical particles
constexpr int helcolDenominators[1] = { 36 }; // assume nprocesses == 1 (#272 and #343)
constexpr int helcolDenominators[1] = { 36,36 }; // assume nprocesses == 1 (#272 and #343)

#ifdef __CUDACC__
// Remember: in CUDA this is a kernel for one event, in c++ this processes n events
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DATA (MIRRORPROCS(I),I=1,1)/.FALSE./
DATA (MIRRORPROCS(I),I=1,1)/.TRUE./
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1 u~ c~ > t t~ u~ c~,u~ d~ > t t~ u~ d~,u~ s~ > t t~ u~ s~,c~ d~ > t t~ c~ d~,c~ s~ > t t~ c~ s~,d~ s~ > t t~ d~ s~
mirror none
mirror c~ u~ > t t~ u~ c~,d~ u~ > t t~ u~ d~,s~ u~ > t t~ u~ s~,d~ c~ > t t~ c~ d~,s~ c~ > t t~ c~ s~,s~ d~ > t t~ d~ s~

0 comments on commit 1903d30

Please # to comment.