Skip to content

master_june24: hack in counters.cc hides a real issue in auto_dsig1.f #891

@valassi

Description

@valassi

Another issue introduced in #830 and being reviewed in #882.

There was a HACK introduced that was not necessary in master. This should be understood and a proper fix introduced.

Before master_june24 there was no need to implement this 'hack'. Are counters being properly taken care of or this hack hiding underlying issues?

git show fe467b559053fd6caece5494a3c2a2eccf2ebaf8 CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/madgraph/iolibs/template_files/gpu/counters.cc
commit fe467b559053fd6caece5494a3c2a2eccf2ebaf8
Author: Stefan Roiser <stefan.roiser@cern.ch>
Date:   Wed May 29 10:35:12 2024 +0200

    HACK, avoid division by 0

diff --git a/epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/madgraph/iolibs/template_files/gpu/counters.cc b/epochX/cudacpp/CODEGEN/PLUGIN/CUDACP>
index 742575a6a..a445f0a02 100644
--- a/epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/madgraph/iolibs/template_files/gpu/counters.cc
+++ b/epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/madgraph/iolibs/template_files/gpu/counters.cc
@@ -92,7 +92,7 @@ extern "C"
                 iimplC + 1,
                 smatrix1multi_totaltime[iimplC],
                 smatrix1multi_counter[iimplC],
-                smatrix1multi_counter[iimplC] / smatrix1multi_totaltime[iimplC] );
+                smatrix1multi_counter[iimplC] / ( smatrix1multi_totaltime[iimplC] + .1 ));
     return;
   }
 }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions