Skip to content

Commit

Permalink
Merge pull request #851 from valassi/launch
Browse files Browse the repository at this point in the history
Add bin/madevent to the madgraph4gpu repo for all processes
  • Loading branch information
valassi authored May 30, 2024
2 parents 195cc37 + 5a43d19 commit aa297fe
Show file tree
Hide file tree
Showing 63 changed files with 1,244 additions and 264 deletions.
12 changes: 0 additions & 12 deletions epochX/cudacpp/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,5 @@ results.dat*
results.pkl
run_[0-9]*
events.lhe*
.libs
.cudacpplibs
madevent
madevent_fortran
madevent_cpp
madevent_cuda

G[0-9]*
ajob[0-9]*
input_app.txt
symfact.dat
gensym

py3_model.pkl
18 changes: 9 additions & 9 deletions epochX/cudacpp/ee_mumu.mad/CODEGEN_mad_ee_mumu_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,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.0057582855224609375 
DEBUG: model prefixing takes 0.005818367004394531 
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 @@ -154,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.004 s
1 processes with 2 diagrams generated in 0.005 s
Total: 1 processes with 2 diagrams
output madevent_simd ../TMPOUT/CODEGEN_mad_ee_mumu --hel_recycling=False --vector_size=32
Load PLUGIN.CUDACPP_OUTPUT
Expand All @@ -177,7 +177,7 @@ 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 1148] 
DEBUG: process_exporter_cpp =  <PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_OneProcessExporter object at 0x7f21a0e4e700> [export_v4.py at line 6261] 
DEBUG: process_exporter_cpp =  <PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_OneProcessExporter object at 0x7feecb09d3a0> [export_v4.py at line 6261] 
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 @@ -194,19 +194,19 @@ INFO: Created files CPPProcess.h and CPPProcess.cc in directory ./.
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.004 s
Wrote files for 8 helas calls in 0.103 s
Wrote files for 8 helas calls in 0.104 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.209 s
ALOHA: aloha creates 3 routines in 0.213 s
DEBUG: Entering PLUGIN_ProcessExporter.convert_model (create the model) [output.py at line 205] 
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.272 s
ALOHA: aloha creates 7 routines in 0.280 s
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV2
Expand Down Expand Up @@ -250,9 +250,9 @@ Type "launch" to generate events from this process, or see
Run "open index.html" to see more information about this process.
quit

real 0m1.930s
user 0m1.716s
sys 0m0.204s
real 0m1.985s
user 0m1.747s
sys 0m0.212s
Code generation completed in 2 seconds
************************************************************
* *
Expand Down
1 change: 0 additions & 1 deletion epochX/cudacpp/ee_mumu.mad/Cards/run_card.dat
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,5 @@ systematics = systematics_program ! none, systematics [python], SysCalc [deprece
#***********************************************************************
# SIMD/GPU configuration for the CUDACPP plugin
#************************************************************************
d = floating_type ! floating point precision: f (single), d (double), m (mixed: double for amplitudes, single for colors)
cpp = cudacpp_backend ! CUDACPP backend: fortran, cuda, hip, cpp, cppnone, cppsse4, cppavx2, cpp512y, cpp512z, cppauto

1 change: 0 additions & 1 deletion epochX/cudacpp/ee_mumu.mad/Cards/run_card_default.dat
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,5 @@ systematics = systematics_program ! none, systematics [python], SysCalc [deprece
#***********************************************************************
# SIMD/GPU configuration for the CUDACPP plugin
#************************************************************************
d = floating_type ! floating point precision: f (single), d (double), m (mixed: double for amplitudes, single for colors)
cpp = cudacpp_backend ! CUDACPP backend: fortran, cuda, hip, cpp, cppnone, cppsse4, cppavx2, cpp512y, cpp512z, cppauto

7 changes: 4 additions & 3 deletions epochX/cudacpp/ee_mumu.mad/bin/internal/launch_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def compile(self, *args, **opts):
"""#***********************************************************************
# SIMD/GPU configuration for the CUDACPP plugin
#************************************************************************
%(floating_type)s = floating_type ! floating point precision: f (single), d (double), m (mixed: double for amplitudes, single for colors)
%(cudacpp_backend)s = cudacpp_backend ! CUDACPP backend: fortran, cuda, hip, cpp, cppnone, cppsse4, cppavx2, cpp512y, cpp512z, cppauto
"""

Expand Down Expand Up @@ -86,9 +85,11 @@ def plugin_input(self, finput):

def default_setup(self):
super().default_setup()
self.add_param('floating_type', 'd', include=False, hidden=False,
self.add_param('floating_type', 'm', include=False, hidden=True,
fct_mod=(self.reset_makeopts,(),{}),
allowed=['m','d','f'])
allowed=['m','d','f'],
comment='floating point precision: f (single), d (double), m (mixed: double for amplitudes, single for colors)'
)
cudacpp_supported_backends = [ 'fortran', 'cuda', 'hip', 'cpp', 'cppnone', 'cppsse4', 'cppavx2', 'cpp512y', 'cpp512z', 'cppauto' ]
self.add_param('cudacpp_backend', 'cpp', include=False, hidden=False,
allowed=cudacpp_supported_backends)
Expand Down
10 changes: 5 additions & 5 deletions epochX/cudacpp/ee_mumu.sa/CODEGEN_cudacpp_ee_mumu_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,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.00582575798034668 
DEBUG: model prefixing takes 0.005814552307128906 
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 @@ -184,7 +184,7 @@ ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates FFV2 routines
ALOHA: aloha creates FFV4 routines
ALOHA: aloha creates FFV2_4 routines
ALOHA: aloha creates 4 routines in 0.287 s
ALOHA: aloha creates 4 routines in 0.285 s
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV2
Expand All @@ -203,7 +203,7 @@ INFO: Created files Parameters_sm.h and Parameters_sm.cc in directory
INFO: /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_cudacpp_ee_mumu/src/. and /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_cudacpp_ee_mumu/src/.
quit

real 0m0.836s
user 0m0.670s
sys 0m0.059s
real 0m0.689s
user 0m0.639s
sys 0m0.045s
Code generation completed in 1 seconds
20 changes: 10 additions & 10 deletions epochX/cudacpp/gg_tt.mad/CODEGEN_mad_gg_tt_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ generate g g > t t~
No model currently active, so we import the Standard Model
INFO: load particles
INFO: load vertices
DEBUG: model prefixing takes 0.005464315414428711 
DEBUG: model prefixing takes 0.0058248043060302734 
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 @@ -155,7 +155,7 @@ INFO: Please specify coupling orders to bypass this step.
INFO: Trying coupling order WEIGHTED<=2: WEIGTHED IS QCD+2*QED
INFO: Trying process: g g > t t~ WEIGHTED<=2 @1
INFO: Process has 3 diagrams
1 processes with 3 diagrams generated in 0.008 s
1 processes with 3 diagrams generated in 0.009 s
Total: 1 processes with 3 diagrams
output madevent_simd ../TMPOUT/CODEGEN_mad_gg_tt --hel_recycling=False --vector_size=32
Load PLUGIN.CUDACPP_OUTPUT
Expand All @@ -178,7 +178,7 @@ INFO: Generating Helas calls for process: g g > t t~ WEIGHTED<=2 @1
INFO: Processing color information for process: g g > t t~ @1
INFO: Creating files in directory P1_gg_ttx
DEBUG: kwargs[prefix] = 0 [model_handling.py at line 1148] 
DEBUG: process_exporter_cpp =  <PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_OneProcessExporter object at 0x7f21d47719d0> [export_v4.py at line 6261] 
DEBUG: process_exporter_cpp =  <PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_OneProcessExporter object at 0x7ffabb64e610> [export_v4.py at line 6261] 
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 @@ -194,16 +194,16 @@ INFO: Created files CPPProcess.h and CPPProcess.cc in directory ./.
INFO: Generating Feynman diagrams for Process: g g > t t~ WEIGHTED<=2 @1
INFO: Finding symmetric diagrams for subprocess group gg_ttx
Generated helas calls for 1 subprocesses (3 diagrams) in 0.006 s
Wrote files for 10 helas calls in 0.105 s
Wrote files for 10 helas calls in 0.108 s
ALOHA: aloha starts to compute helicity amplitudes
ALOHA: aloha creates VVV1 set of routines with options: P0
ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates 2 routines in 0.153 s
ALOHA: aloha creates 2 routines in 0.154 s
DEBUG: Entering PLUGIN_ProcessExporter.convert_model (create the model) [output.py at line 205] 
ALOHA: aloha starts to compute helicity amplitudes
ALOHA: aloha creates VVV1 set of routines with options: P0
ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates 4 routines in 0.142 s
ALOHA: aloha creates 4 routines in 0.139 s
<class 'aloha.create_aloha.AbstractRoutine'> VVV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
Expand Down Expand Up @@ -239,10 +239,10 @@ Type "launch" to generate events from this process, or see
Run "open index.html" to see more information about this process.
quit

real 0m1.771s
user 0m1.550s
sys 0m0.221s
Code generation completed in 2 seconds
real 0m1.797s
user 0m1.551s
sys 0m0.228s
Code generation completed in 1 seconds
************************************************************
* *
* W E L C O M E to *
Expand Down
1 change: 0 additions & 1 deletion epochX/cudacpp/gg_tt.mad/Cards/run_card.dat
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,5 @@ systematics = systematics_program ! none, systematics [python], SysCalc [deprece
#***********************************************************************
# SIMD/GPU configuration for the CUDACPP plugin
#************************************************************************
d = floating_type ! floating point precision: f (single), d (double), m (mixed: double for amplitudes, single for colors)
cpp = cudacpp_backend ! CUDACPP backend: fortran, cuda, hip, cpp, cppnone, cppsse4, cppavx2, cpp512y, cpp512z, cppauto

1 change: 0 additions & 1 deletion epochX/cudacpp/gg_tt.mad/Cards/run_card_default.dat
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,5 @@ systematics = systematics_program ! none, systematics [python], SysCalc [deprece
#***********************************************************************
# SIMD/GPU configuration for the CUDACPP plugin
#************************************************************************
d = floating_type ! floating point precision: f (single), d (double), m (mixed: double for amplitudes, single for colors)
cpp = cudacpp_backend ! CUDACPP backend: fortran, cuda, hip, cpp, cppnone, cppsse4, cppavx2, cpp512y, cpp512z, cppauto

7 changes: 4 additions & 3 deletions epochX/cudacpp/gg_tt.mad/bin/internal/launch_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def compile(self, *args, **opts):
"""#***********************************************************************
# SIMD/GPU configuration for the CUDACPP plugin
#************************************************************************
%(floating_type)s = floating_type ! floating point precision: f (single), d (double), m (mixed: double for amplitudes, single for colors)
%(cudacpp_backend)s = cudacpp_backend ! CUDACPP backend: fortran, cuda, hip, cpp, cppnone, cppsse4, cppavx2, cpp512y, cpp512z, cppauto
"""

Expand Down Expand Up @@ -86,9 +85,11 @@ def plugin_input(self, finput):

def default_setup(self):
super().default_setup()
self.add_param('floating_type', 'd', include=False, hidden=False,
self.add_param('floating_type', 'm', include=False, hidden=True,
fct_mod=(self.reset_makeopts,(),{}),
allowed=['m','d','f'])
allowed=['m','d','f'],
comment='floating point precision: f (single), d (double), m (mixed: double for amplitudes, single for colors)'
)
cudacpp_supported_backends = [ 'fortran', 'cuda', 'hip', 'cpp', 'cppnone', 'cppsse4', 'cppavx2', 'cpp512y', 'cpp512z', 'cppauto' ]
self.add_param('cudacpp_backend', 'cpp', include=False, hidden=False,
allowed=cudacpp_supported_backends)
Expand Down
12 changes: 6 additions & 6 deletions epochX/cudacpp/gg_tt.sa/CODEGEN_cudacpp_gg_tt_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ generate g g > t t~
No model currently active, so we import the Standard Model
INFO: load particles
INFO: load vertices
DEBUG: model prefixing takes 0.005803108215332031 
DEBUG: model prefixing takes 0.005820274353027344 
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 @@ -155,7 +155,7 @@ INFO: Please specify coupling orders to bypass this step.
INFO: Trying coupling order WEIGHTED<=2: WEIGTHED IS QCD+2*QED
INFO: Trying process: g g > t t~ WEIGHTED<=2 @1
INFO: Process has 3 diagrams
1 processes with 3 diagrams generated in 0.008 s
1 processes with 3 diagrams generated in 0.009 s
Total: 1 processes with 3 diagrams
output standalone_cudacpp ../TMPOUT/CODEGEN_cudacpp_gg_tt
Load PLUGIN.CUDACPP_OUTPUT
Expand Down Expand Up @@ -183,7 +183,7 @@ Generated helas calls for 1 subprocesses (3 diagrams) in 0.006 s
ALOHA: aloha starts to compute helicity amplitudes
ALOHA: aloha creates VVV1 set of routines with options: P0
ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates 2 routines in 0.149 s
ALOHA: aloha creates 2 routines in 0.153 s
<class 'aloha.create_aloha.AbstractRoutine'> VVV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
Expand All @@ -198,7 +198,7 @@ INFO: Created files Parameters_sm.h and Parameters_sm.cc in directory
INFO: /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_cudacpp_gg_tt/src/. and /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_cudacpp_gg_tt/src/.
quit

real 0m0.703s
user 0m0.492s
sys 0m0.049s
real 0m0.635s
user 0m0.505s
sys 0m0.048s
Code generation completed in 0 seconds
20 changes: 10 additions & 10 deletions epochX/cudacpp/gg_tt01g.mad/CODEGEN_mad_gg_tt01g_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ generate g g > t t~
No model currently active, so we import the Standard Model
INFO: load particles
INFO: load vertices
DEBUG: model prefixing takes 0.005784273147583008 
DEBUG: model prefixing takes 0.005791902542114258 
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 @@ -188,7 +188,7 @@ INFO: Generating Helas calls for process: g g > t t~ WEIGHTED<=2 @1
INFO: Processing color information for process: g g > t t~ @1
INFO: Creating files in directory P2_gg_ttxg
DEBUG: kwargs[prefix] = 0 [model_handling.py at line 1148] 
DEBUG: process_exporter_cpp =  <PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_OneProcessExporter object at 0x7f8984fd3160> [export_v4.py at line 6261] 
DEBUG: process_exporter_cpp =  <PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_OneProcessExporter object at 0x7f1f7d3f1850> [export_v4.py at line 6261] 
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 @@ -205,7 +205,7 @@ INFO: Generating Feynman diagrams for Process: g g > t t~ g WEIGHTED<=3 @2
INFO: Finding symmetric diagrams for subprocess group gg_ttxg
INFO: Creating files in directory P1_gg_ttx
DEBUG: kwargs[prefix] = 0 [model_handling.py at line 1148] 
DEBUG: process_exporter_cpp =  <PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_OneProcessExporter object at 0x7f8984fd69a0> [export_v4.py at line 6261] 
DEBUG: process_exporter_cpp =  <PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_OneProcessExporter object at 0x7f1f7d3f1850> [export_v4.py at line 6261] 
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 @@ -221,22 +221,22 @@ INFO: Created files CPPProcess.h and CPPProcess.cc in directory ./.
INFO: Generating Feynman diagrams for Process: g g > t t~ WEIGHTED<=2 @1
INFO: Finding symmetric diagrams for subprocess group gg_ttx
Generated helas calls for 2 subprocesses (19 diagrams) in 0.045 s
Wrote files for 46 helas calls in 0.279 s
Wrote files for 46 helas calls in 0.259 s
ALOHA: aloha starts to compute helicity amplitudes
ALOHA: aloha creates VVV1 routines
ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates VVVV1 set of routines with options: P0
ALOHA: aloha creates VVVV3 set of routines with options: P0
ALOHA: aloha creates VVVV4 set of routines with options: P0
ALOHA: aloha creates 5 routines in 0.338 s
ALOHA: aloha creates 5 routines in 0.348 s
DEBUG: Entering PLUGIN_ProcessExporter.convert_model (create the model) [output.py at line 205] 
ALOHA: aloha starts to compute helicity amplitudes
ALOHA: aloha creates VVV1 routines
ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates VVVV1 set of routines with options: P0
ALOHA: aloha creates VVVV3 set of routines with options: P0
ALOHA: aloha creates VVVV4 set of routines with options: P0
ALOHA: aloha creates 10 routines in 0.323 s
ALOHA: aloha creates 10 routines in 0.330 s
<class 'aloha.create_aloha.AbstractRoutine'> VVV1
<class 'aloha.create_aloha.AbstractRoutine'> VVV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
Expand Down Expand Up @@ -285,10 +285,10 @@ Type "launch" to generate events from this process, or see
Run "open index.html" to see more information about this process.
quit

real 0m2.389s
user 0m2.141s
sys 0m0.224s
Code generation completed in 3 seconds
real 0m2.666s
user 0m2.189s
sys 0m0.225s
Code generation completed in 2 seconds
************************************************************
* *
* W E L C O M E to *
Expand Down
1 change: 0 additions & 1 deletion epochX/cudacpp/gg_tt01g.mad/Cards/run_card.dat
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,5 @@ systematics = systematics_program ! none, systematics [python], SysCalc [deprece
#***********************************************************************
# SIMD/GPU configuration for the CUDACPP plugin
#************************************************************************
d = floating_type ! floating point precision: f (single), d (double), m (mixed: double for amplitudes, single for colors)
cpp = cudacpp_backend ! CUDACPP backend: fortran, cuda, hip, cpp, cppnone, cppsse4, cppavx2, cpp512y, cpp512z, cppauto

Loading

0 comments on commit aa297fe

Please sign in to comment.