Skip to content

Commit

Permalink
[runcard] in CODEGEN launch_plugin.py, prepend 'BACKEND=xxx' to 'make…
Browse files Browse the repository at this point in the history
… madevent_xxx_link' in args[0][0] to support USEBUILDDIR=1 (part of madgraph5#945)

Then regenerate gg_tt.mad

However lauX.sh still fails
  • Loading branch information
valassi committed Aug 5, 2024
1 parent 853a20e commit b51a59a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def compile(self, *args, **opts):
cudacpp_backend = self.run_card['cudacpp_backend'].lower() # the default value is defined in launch_plugin.py
logger.info("Building madevent in madevent_interface.py with '%s' matrix elements"%cudacpp_backend)
if cudacpp_backend in cudacpp_supported_backends :
args[0][0] = 'madevent_' + cudacpp_backend + '_link'
args[0][0] = 'BACKEND=' + cudacpp_backend + ' madevent_' + cudacpp_backend + '_link'
else:
raise Exception( "Invalid cudacpp_backend='%s': supported backends are %s"%supported_backends )
return misc.compile(nb_core=self.options['nb_core'], *args, **opts)
Expand Down
16 changes: 8 additions & 8 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.005624532699584961 
DEBUG: model prefixing takes 0.005587100982666016 
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.009 s
1 processes with 3 diagrams generated in 0.008 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 1152] 
DEBUG: process_exporter_cpp =  <PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_OneProcessExporter object at 0x7fd872b45d90> [export_v4.py at line 6261] 
DEBUG: process_exporter_cpp =  <PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_OneProcessExporter object at 0x7f0fbfc85d90> [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 @@ -198,15 +198,15 @@ INFO: Finding symmetric diagrams for subprocess group gg_ttx
DEBUG: iconfig_to_diag =  {1: 1, 2: 2, 3: 3} [model_handling.py at line 1544] 
DEBUG: diag_to_iconfig =  {1: 1, 2: 2, 3: 3} [model_handling.py at line 1545] 
Generated helas calls for 1 subprocesses (3 diagrams) in 0.006 s
Wrote files for 10 helas calls in 0.122 s
Wrote files for 10 helas calls in 0.118 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 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.135 s
ALOHA: aloha creates 4 routines in 0.136 s
<class 'aloha.create_aloha.AbstractRoutine'> VVV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
Expand Down Expand Up @@ -241,9 +241,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.968s
user 0m1.697s
sys 0m0.269s
real 0m1.962s
user 0m1.684s
sys 0m0.275s
Code generation completed in 2 seconds
************************************************************
* *
Expand Down
2 changes: 1 addition & 1 deletion epochX/cudacpp/gg_tt.mad/bin/internal/launch_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def compile(self, *args, **opts):
cudacpp_backend = self.run_card['cudacpp_backend'].lower() # the default value is defined in launch_plugin.py
logger.info("Building madevent in madevent_interface.py with '%s' matrix elements"%cudacpp_backend)
if cudacpp_backend in cudacpp_supported_backends :
args[0][0] = 'madevent_' + cudacpp_backend + '_link'
args[0][0] = 'BACKEND=' + cudacpp_backend + ' madevent_' + cudacpp_backend + '_link'
else:
raise Exception( "Invalid cudacpp_backend='%s': supported backends are %s"%supported_backends )
return misc.compile(nb_core=self.options['nb_core'], *args, **opts)
Expand Down

0 comments on commit b51a59a

Please # to comment.