From 8eec0c2a1c22dcd4b21a68760d9352bbd008707e Mon Sep 17 00:00:00 2001 From: Olivier Mattelaer Date: Tue, 6 Feb 2024 15:19:04 +0100 Subject: [PATCH] fix an issue that the default run_card for GPU was the one for CPP and not the one for GPU --- .../CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/output.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/output.py b/epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/output.py index a75a9dce64..85e49ffba9 100644 --- a/epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/output.py +++ b/epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/output.py @@ -37,6 +37,9 @@ import madgraph.iolibs.files as files import madgraph.various.misc as misc +from . import launch_plugin + + # AV - define the plugin's process exporter # (NB: this is the plugin's main class, enabled in the new_output dictionary in __init__.py) class PLUGIN_ProcessExporter(PLUGIN_export_cpp.ProcessExporterGPU): @@ -151,11 +154,6 @@ class PLUGIN_ProcessExporter(PLUGIN_export_cpp.ProcessExporterGPU): ###helas_exporter = None helas_exporter = model_handling.PLUGIN_GPUFOHelasCallWriter # this is one of the main fixes for issue #341! - # Default class for the run_card to use - from . import launch_plugin - run_card_class = launch_plugin.CPPRunCard - - # AV (default from OM's tutorial) - add a debug printout def __init__(self, *args, **kwargs): self.in_madevent_mode = False # see MR #747 @@ -300,6 +298,10 @@ class PLUGIN_ProcessExporter_MadEvent(PLUGIN_ProcessExporter): #------------------------------------------------------------------------------------ class SIMD_ProcessExporter(PLUGIN_ProcessExporter_MadEvent): + + # Default class for the run_card to use + run_card_class = launch_plugin.CPPRunCard + def change_output_args(args, cmd): """ """ cmd._export_format = "madevent" @@ -312,6 +314,10 @@ def change_output_args(args, cmd): #------------------------------------------------------------------------------------ class GPU_ProcessExporter(PLUGIN_ProcessExporter_MadEvent): + + # Default class for the run_card to use + run_card_class = launch_plugin.GPURunCard + def change_output_args(args, cmd): """ """ cmd._export_format = "madevent"