Skip to content

Commit 80e37ce

Browse files
Fix duplicate cppfat in SUPPORTED_BACKENDS and duplicate block in mgOnGpuConfig.h
Agent-Logs-Url: https://github.com/madgraph5/madgraph4gpu/sessions/db0d537e-e75b-4d0b-ba4c-b7f11fb41df6 Co-authored-by: oliviermattelaer <[email protected]>
1 parent 5c19a08 commit 80e37ce

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/madgraph/iolibs/template_files/gpu/cudacpp_config.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ endif
3434

3535
# Check that the user-defined choices of BACKEND, FPTYPE, HELINL, HRDCOD are supported
3636
# (NB: use 'filter' and 'words' instead of 'findstring' because they properly handle whitespace-separated words)
37-
override SUPPORTED_BACKENDS = cuda hip cppnone cppsse4 cppavx2 cpp512y cpp512z cppauto cppfat cppfat
37+
override SUPPORTED_BACKENDS = cuda hip cppnone cppsse4 cppavx2 cpp512y cpp512z cppauto cppfat
3838
ifneq ($(words $(filter $(BACKEND), $(SUPPORTED_BACKENDS))),1)
3939
$(error Invalid backend BACKEND='$(BACKEND)': supported backends are $(foreach backend,$(SUPPORTED_BACKENDS),'$(backend)'))
4040
endif

epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/madgraph/iolibs/template_files/gpu/mgOnGpuConfig.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -315,13 +315,4 @@ ispoweroftwo( int n )
315315
#define mg5amcCpu MGONGPU_SIMD_NAMESPACE
316316
#endif
317317

318-
// For fat binary builds: when MGONGPU_SIMD_NAMESPACE is defined externally (e.g. -DMGONGPU_SIMD_NAMESPACE=mg5amcCpu_avx2),
319-
// redefine mg5amcCpu to the versioned namespace for SIMD-sensitive translation units (CPPProcess, color_sum).
320-
// This allows compiling those translation units multiple times with different -march flags,
321-
// each time placing all symbols in a distinct versioned namespace, for runtime dispatch in a fat binary.
322-
// Files that are NOT SIMD-sensitive (MatrixElementKernels, BridgeKernels, fbridge etc.) are compiled
323-
// without MGONGPU_SIMD_NAMESPACE and therefore continue to use the standard mg5amcCpu namespace.
324-
#define mg5amcCpu MGONGPU_SIMD_NAMESPACE
325-
#endif
326-
327318
#endif // MGONGPUCONFIG_H

0 commit comments

Comments
 (0)