Skip to content

Commit

Permalink
[refactorMakefile] regenerate all mad processes
Browse files Browse the repository at this point in the history
./CODEGEN/allGenerateAndCompare.sh --mad
  • Loading branch information
valassi committed Dec 14, 2023
1 parent b8fd2a9 commit 31087b6
Show file tree
Hide file tree
Showing 31 changed files with 477 additions and 462 deletions.
77 changes: 38 additions & 39 deletions epochX/cudacpp/ee_mumu.mad/CODEGEN_mad_ee_mumu_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ Please set the 'lhapdf' variable to the (absolute) /PATH/TO/lhapdf-config (inclu
Note that you can still compile and run aMC@NLO with the built-in PDFs
MG5_aMC> set lhapdf /PATH/TO/lhapdf-config

Using default text editor "vi". Set another one in ./input/mg5_configuration.txt
Using default eps viewer "evince". Set another one in ./input/mg5_configuration.txt
Using default web browser "firefox". Set another one in ./input/mg5_configuration.txt
import /data/stephan/madgraph4gpu/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu.mg
import /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu.mg
The import format was not given, so we guess it as command
set stdout_level DEBUG
set output information to level: 10
Expand All @@ -61,7 +62,7 @@ generate e+ e- > mu+ mu-
No model currently active, so we import the Standard Model
INFO: load particles
INFO: load vertices
DEBUG: model prefixing takes 0.0036394596099853516 
DEBUG: model prefixing takes 0.005708932876586914 
INFO: Restrict model sm with file models/sm/restrict_default.dat .
DEBUG: Simplifying conditional expressions 
DEBUG: remove interactions: u s w+ at order: QED=1 
Expand Down Expand Up @@ -153,7 +154,7 @@ INFO: Checking for minimal orders which gives processes.
INFO: Please specify coupling orders to bypass this step.
INFO: Trying process: e+ e- > mu+ mu- WEIGHTED<=4 @1
INFO: Process has 2 diagrams
1 processes with 2 diagrams generated in 0.003 s
1 processes with 2 diagrams generated in 0.004 s
Total: 1 processes with 2 diagrams
output madevent ../TMPOUT/CODEGEN_mad_ee_mumu --hel_recycling=False --vector_size=32 --me_exporter=standalone_cudacpp
Load PLUGIN.CUDACPP_OUTPUT
Expand All @@ -164,16 +165,16 @@ Load PLUGIN.CUDACPP_OUTPUT
INFO: initialize a new directory: CODEGEN_mad_ee_mumu
INFO: remove old information in CODEGEN_mad_ee_mumu
DEBUG: Entering PLUGIN_ProcessExporter.copy_template (initialise the directory) [output.py at line 165] 
WARNING: File exists /data/stephan/madgraph4gpu/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu 
INFO: Creating subdirectories in directory /data/stephan/madgraph4gpu/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu
WARNING: File exists /data/stephan/madgraph4gpu/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/Cards 
WARNING: File exists /data/stephan/madgraph4gpu/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/SubProcesses 
WARNING: File exists /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu 
INFO: Creating subdirectories in directory /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu
WARNING: File exists /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/Cards 
WARNING: File exists /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/SubProcesses 
INFO: Organizing processes into subprocess groups
INFO: Generating Helas calls for process: e+ e- > mu+ mu- WEIGHTED<=4 @1
INFO: Processing color information for process: e+ e- > mu+ mu- @1
INFO: Creating files in directory P1_epem_mupmum
DEBUG: kwargs[prefix] = 0 [model_handling.py at line 1058] 
DEBUG: process_exporter_cpp =  <PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_OneProcessExporter object at 0x7f348780b700> [export_v4.py at line 6262] 
DEBUG: process_exporter_cpp =  <PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_OneProcessExporter object at 0x7f3ba05305e0> [export_v4.py at line 6262] 
INFO: Creating files in directory .
FileWriter <class 'PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_CPPWriter'> for ././CPPProcess.h
FileWriter <class 'PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_CPPWriter'> for ././CPPProcess.cc
Expand All @@ -189,20 +190,20 @@ INFO: Created files CPPProcess.h and CPPProcess.cc in directory ./.
DEBUG: vector, subproc_group,self.opt['vector_size'] =  32 True 32 [export_v4.py at line 1872] 
INFO: Generating Feynman diagrams for Process: e+ e- > mu+ mu- WEIGHTED<=4 @1
INFO: Finding symmetric diagrams for subprocess group epem_mupmum
Generated helas calls for 1 subprocesses (2 diagrams) in 0.003 s
Wrote files for 8 helas calls in 0.076 s
Generated helas calls for 1 subprocesses (2 diagrams) in 0.004 s
Wrote files for 8 helas calls in 0.098 s
ALOHA: aloha starts to compute helicity amplitudes
ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates FFV2 routines
ALOHA: aloha creates FFV4 routines
ALOHA: aloha creates 3 routines in 0.133 s
ALOHA: aloha creates 3 routines in 0.197 s
DEBUG: Entering PLUGIN_ProcessExporter.convert_model (create the model) [output.py at line 202] 
ALOHA: aloha starts to compute helicity amplitudes
ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates FFV2 routines
ALOHA: aloha creates FFV4 routines
ALOHA: aloha creates FFV2_4 routines
ALOHA: aloha creates 7 routines in 0.163 s
ALOHA: aloha creates 7 routines in 0.253 s
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV2
Expand All @@ -211,51 +212,47 @@ ALOHA: aloha creates 7 routines in 0.163 s
<class 'aloha.create_aloha.AbstractRoutine'> FFV4
<class 'aloha.create_aloha.AbstractRoutine'> FFV2_4
<class 'aloha.create_aloha.AbstractRoutine'> FFV2_4
FileWriter <class 'PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_CPPWriter'> for /data/stephan/madgraph4gpu/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/src/./HelAmps_sm.h
INFO: Created file HelAmps_sm.h in directory /data/stephan/madgraph4gpu/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/src/.
FileWriter <class 'PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_CPPWriter'> for /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/src/./HelAmps_sm.h
INFO: Created file HelAmps_sm.h in directory /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/src/.
super_write_set_parameters_onlyfixMajorana (hardcoded=False)
super_write_set_parameters_onlyfixMajorana (hardcoded=True)
FileWriter <class 'PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_CPPWriter'> for /data/stephan/madgraph4gpu/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/src/./Parameters_sm.h
FileWriter <class 'PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_CPPWriter'> for /data/stephan/madgraph4gpu/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/src/./Parameters_sm.cc
FileWriter <class 'PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_CPPWriter'> for /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/src/./Parameters_sm.h
FileWriter <class 'PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_CPPWriter'> for /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/src/./Parameters_sm.cc
INFO: Created files Parameters_sm.h and Parameters_sm.cc in directory
INFO: /data/stephan/madgraph4gpu/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/src/. and /data/stephan/madgraph4gpu/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/src/.
INFO: /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/src/. and /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/src/.
The option zerowidth_tchannel is modified [True] but will not be written in the configuration files.
If you want to make this value the default for future session, you can run 'save options --all'
save configuration file to /data/stephan/madgraph4gpu/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/Cards/me5_configuration.txt
save configuration file to /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/Cards/me5_configuration.txt
INFO: Use Fortran compiler gfortran
INFO: Use c++ compiler g++
INFO: Generate web pages
DEBUG: cd /data/stephan/madgraph4gpu/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu; patch -p4 -i /data/stephan/madgraph4gpu/epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/MG5aMC_patches/PROD/patch.common
DEBUG: standardise /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/Source/make_opts (fix f2py3 and sort make_opts_variables) before applying patch.common
DEBUG: cd /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu; patch -p4 -i /data/avalassi/GPU2023/madgraph4gpuX/epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/MG5aMC_patches/PROD/patch.common
patching file Source/genps.inc
patching file Source/make_opts
Hunk #1 succeeded at 12 (offset -1 lines).
Hunk #2 succeeded at 70 (offset -1 lines).
Hunk #3 succeeded at 117 (offset -1 lines).
Hunk #4 succeeded at 128 (offset -1 lines).
patching file Source/makefile
patching file SubProcesses/makefile
patching file bin/internal/banner.py
patching file bin/internal/gen_ximprove.py
patching file bin/internal/madevent_interface.py
DEBUG: cd /data/stephan/madgraph4gpu/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/SubProcesses/P1_epem_mupmum; patch -p6 -i /data/stephan/madgraph4gpu/epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/MG5aMC_patches/PROD/patch.P1
DEBUG: cd /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/SubProcesses/P1_epem_mupmum; patch -p6 -i /data/avalassi/GPU2023/madgraph4gpuX/epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/MG5aMC_patches/PROD/patch.P1
patching file auto_dsig1.f
Hunk #1 succeeded at 496 (offset 12 lines).
patching file driver.f
patching file matrix1.f
Hunk #2 succeeded at 143 (offset -16 lines).
Hunk #3 succeeded at 230 (offset -7 lines).
Hunk #4 succeeded at 267 (offset 2 lines).
Hunk #5 succeeded at 312 (offset 2 lines).
Hunk #3 succeeded at 230 (offset 9 lines).
Hunk #4 succeeded at 267 (offset 18 lines).
Hunk #5 succeeded at 312 (offset 18 lines).
DEBUG: p.returncode =  0 [output.py at line 237] 
Output to directory /data/stephan/madgraph4gpu/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu done.
Output to directory /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu done.
Type "launch" to generate events from this process, or see
/data/stephan/madgraph4gpu/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/README
/data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/README
Run "open index.html" to see more information about this process.
quit

real 0m1.496s
user 0m1.179s
sys 0m0.313s
real 0m1.877s
user 0m1.634s
sys 0m0.245s
************************************************************
* *
* W E L C O M E to *
Expand All @@ -276,9 +273,10 @@ sys 0m0.313s
* Type 'help' for in-line help. *
* *
************************************************************
INFO: load configuration from /data/stephan/madgraph4gpu/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/Cards/me5_configuration.txt
INFO: load configuration from /data/stephan/madgraph4gpu/MG5aMC/mg5amcnlo/input/mg5_configuration.txt
INFO: load configuration from /data/stephan/madgraph4gpu/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/Cards/me5_configuration.txt
INFO: load configuration from /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/Cards/me5_configuration.txt
INFO: load configuration from /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/mg5amcnlo/input/mg5_configuration.txt
INFO: load configuration from /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/Cards/me5_configuration.txt
Using default text editor "vi". Set another one in ./input/mg5_configuration.txt
Using default eps viewer "evince". Set another one in ./input/mg5_configuration.txt
Using default web browser "firefox". Set another one in ./input/mg5_configuration.txt
treatcards run
Expand All @@ -305,9 +303,10 @@ launch in debug mode
* Type 'help' for in-line help. *
* *
************************************************************
INFO: load configuration from /data/stephan/madgraph4gpu/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/Cards/me5_configuration.txt
INFO: load configuration from /data/stephan/madgraph4gpu/MG5aMC/mg5amcnlo/input/mg5_configuration.txt
INFO: load configuration from /data/stephan/madgraph4gpu/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/Cards/me5_configuration.txt
INFO: load configuration from /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/Cards/me5_configuration.txt
INFO: load configuration from /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/mg5amcnlo/input/mg5_configuration.txt
INFO: load configuration from /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_ee_mumu/Cards/me5_configuration.txt
Using default text editor "vi". Set another one in ./input/mg5_configuration.txt
Using default eps viewer "evince". Set another one in ./input/mg5_configuration.txt
Using default web browser "firefox". Set another one in ./input/mg5_configuration.txt
treatcards param
Expand Down
4 changes: 2 additions & 2 deletions epochX/cudacpp/ee_mumu.mad/Cards/me5_configuration.txt
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
# pineappl = pineappl


#mg5_path = /data/stephan/madgraph4gpu/MG5aMC/mg5amcnlo
#mg5_path = /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/mg5amcnlo

# MG5 MAIN DIRECTORY
#mg5_path = /data/stephan/madgraph4gpu/MG5aMC/mg5amcnlo
#mg5_path = /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/mg5amcnlo
8 changes: 4 additions & 4 deletions epochX/cudacpp/ee_mumu.mad/SubProcesses/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ help:
$(info Or 'ALL' for all C++ and cuda targets)


# Enable ccache if USECCACHE=1
# Enable ccache for C++ if USECCACHE=1 (do not enable it for Fortran since it is not supported for Fortran)
ifeq ($(USECCACHE)$(shell echo $(CXX) | grep ccache),1)
override CXX:=ccache $(CXX)
endif
ifeq ($(USECCACHE)$(shell echo $(FC) | grep ccache),1)
override FC:=ccache $(FC)
endif
###ifeq ($(USECCACHE)$(shell echo $(FC) | grep ccache),1)
### override FC:=ccache $(FC)
###endif

# Load additional dependencies of the bias module, if present
ifeq (,$(wildcard ../bias_dependencies))
Expand Down
2 changes: 2 additions & 0 deletions epochX/cudacpp/ee_mumu.mad/SubProcesses/runTest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ struct CUDATest : public CUDA_CPU_TestBase
// Use two levels of macros to force stringification at the right level
// (see https://gcc.gnu.org/onlinedocs/gcc-3.0.1/cpp_3.html#SEC17 and https://stackoverflow.com/a/3419392)
// Google macro is in https://github.com/google/googletest/blob/master/googletest/include/gtest/gtest-param-test.h
/* clang-format off */
#define TESTID_CPU( s ) s##_CPU
#define XTESTID_CPU( s ) TESTID_CPU( s )
#define MG_INSTANTIATE_TEST_SUITE_CPU( prefix, test_suite_name ) \
Expand All @@ -255,6 +256,7 @@ struct CUDATest : public CUDA_CPU_TestBase
INSTANTIATE_TEST_SUITE_P( prefix, \
test_suite_name, \
testing::Values( new CUDATest( MG_EPOCH_REFERENCE_FILE_NAME ) ) );
/* clang-format on */

#ifdef __CUDACC__
MG_INSTANTIATE_TEST_SUITE_GPU( XTESTID_GPU( MG_EPOCH_PROCESS_ID ), MadgraphTest );
Expand Down
Loading

0 comments on commit 31087b6

Please sign in to comment.