Skip to content

Commit

Permalink
[smeft2] add new process smeft_gg_tttt.sa to the repository - codegen…
Browse files Browse the repository at this point in the history
… succeeds but the builds fails

In make HRDCOD=0 (default)
Parameters_SMEFTsim_topU3l_MwScheme_UFO.h:19:2: error: #error This non-SM physics process only supports MGONGPU_HARDCODE_PARAM builds (#439): please run "make HRDCOD=1"
   19 | #error This non-SM physics process only supports MGONGPU_HARDCODE_PARAM builds (#439): please run "make HRDCOD=1"
      |  ^~~~~
Parameters_SMEFTsim_topU3l_MwScheme_UFO.cc:33:47: error: exponent has no digits
   33 |   mdl_WH = slha.get_block_entry( "decay", 25, 4.070000e - 03 );
      |                                               ^~~~~~~~~
...
Parameters_SMEFTsim_topU3l_MwScheme_UFO.h:535:43: error: ‘aS’ was not declared in this scope
  535 |       const fptype_sv mdl_gHgg2 = ( -7. * aS ) / ( 720. * M_PI );
      |                                           ^~
Parameters_SMEFTsim_topU3l_MwScheme_UFO.h:541:64: error: conversion from ‘fptype_sv’ {aka ‘__vector(4) double’} to non-scalar type ‘const mgOnGpu::cxsmpl<double>’ requested
  541 |       constexpr cxsmpl<double> mdl_G__exp__3 = ( ( G ) * ( G ) * ( G ) );
      |                                                ~~~~~~~~~~~~~~~~^~~~~~~~~
...
Parameters_SMEFTsim_topU3l_MwScheme_UFO.h:542:33: error: ‘mdl_WH’ was not declared in this scope; did you mean ‘mdl_dWH’?
  542 |       const fptype_sv mdl_dWH = mdl_WH * ( -0.24161 * mdl_dGf + 0.96644 * mdl_dgw + 0.4832199999999999 * mdl_dkH - 0.11186509426655467 * mdl_dWW + ( 0.36410378449238195 * mdl_cHj3 * mdl_vevhat__exp__2 ) / mdl_LambdaSMEFT__exp__2 + ( 0.17608307708657747 * mdl_cHl3 * mdl_vevhat__exp__2 ) / mdl_LambdaSMEFT__exp__2 + ( 0.1636 * mdl_cHG * mdl_MT__exp__2 * mdl_vevhat__exp__2 ) / ( mdl_LambdaSMEFT__exp__2 * ( -0.5 * mdl_gHgg2 * mdl_MH__exp__2 + mdl_gHgg1 * mdl_MT__exp__2 ) ) + ( mdl_cHW * ( -0.35937785117066967 * mdl_gHaa * mdl_gHza + 0.006164 * mdl_cth * mdl_gHaa * mdl_sth + 0.00454 * mdl_gHza * mdl_sth__exp__2 ) * mdl_vevhat__exp__2 ) / ( mdl_gHaa * mdl_gHza * mdl_LambdaSMEFT__exp__2 ) + ( mdl_cHWB * ( -0.00454 * mdl_cth * mdl_gHza * mdl_sth + mdl_gHaa * ( -0.0030819999999999997 + 0.006163999999999999 * mdl_sth__exp__2 ) ) * mdl_vevhat__exp__2 ) / ( mdl_gHaa * mdl_gHza * mdl_LambdaSMEFT__exp__2 ) + ( mdl_cHB * ( -0.006163999999999999 * mdl_cth * mdl_gHaa * mdl_sth - 0.00454 * mdl_gHza * ( -1. + mdl_sth__exp__2 ) ) * mdl_vevhat__exp__2 ) / ( mdl_gHaa * mdl_gHza * mdl_LambdaSMEFT__exp__2 ) + mdl_dWHc + mdl_dWHb + mdl_dWHta );
      |                                 ^~~~~~
      |                                 mdl_dWH
...

In make HRDCOD=1
Parameters_SMEFTsim_topU3l_MwScheme_UFO.h:118:29: error: exponent has no digits
  118 |   constexpr double mdl_WH = 4.070000e - 03;
      |                             ^~~~~~~~~
Parameters_SMEFTsim_topU3l_MwScheme_UFO.h:381:56:   in ‘constexpr’ expansion of ‘Parameters_SMEFTsim_topU3l_MwScheme_UFO::constexpr_pow(2.0e+0, 2.5e-1)’
Parameters_SMEFTsim_topU3l_MwScheme_UFO.h:110:5: error: call to non-‘constexpr’ function ‘void __assert_fail(const char*, const char*, unsigned int, const char*)’
  110 |     assert( static_cast<double>( iexp ) == exp ); // NB would fail at compile time with "error: call to non-‘constexpr’ function ‘void __assert_fail'"
      |     ^~~~~~
...
Parameters_SMEFTsim_topU3l_MwScheme_UFO.h:385:72: error: ‘ABS’ was not declared in this scope
  385 |   constexpr double mdl_propCorr = ABS( mdl_linearPropCorrections ) / ( ABS( mdl_linearPropCorrections ) + mdl_nb__10__exp___m_40 );
      |                                                                        ^~~
Parameters_SMEFTsim_topU3l_MwScheme_UFO.h:398:49: error: call to non-‘constexpr’ function ‘mgOnGpu::cxsmpl<FP> mgOnGpu::conj(const mgOnGpu::cxsmpl<FP>&) [with FP = double]’
  398 |   constexpr cxsmpl<double> mdl_conjg__cbH = conj( mdl_cbH );
      |                                             ~~~~^~~~~~~~~~~
...
  • Loading branch information
valassi committed Apr 6, 2023
1 parent 841109b commit 8904e13
Show file tree
Hide file tree
Showing 120 changed files with 19,323 additions and 0 deletions.
226 changes: 226 additions & 0 deletions epochX/cudacpp/smeft_gg_tttt.sa/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,226 @@
# AV's draft .clang-format
# ---
# February 2022: latest draft for clang 13.0.0 (BasedOnStyle: Google)
# See https://releases.llvm.org/13.0.0/tools/clang/docs/ClangFormatStyleOptions.html
---
Language: Cpp
BasedOnStyle: Google

AccessModifierOffset: -2 # AV was -1
AlignAfterOpenBracket: Align # AV ok
AlignArrayOfStructures: None # AV ok (alternative: Right, but code-generating it would be too complex)
AlignConsecutiveAssignments: None # AV ok
AlignConsecutiveBitFields: None # AV ok
AlignConsecutiveDeclarations: None # AV ok
AlignConsecutiveMacros: None # AV ok
AlignEscapedNewlines: DontAlign # AV was Left
AlignOperands: DontAlign # AV was Align
AlignTrailingComments: true # AV ok
AllowAllArgumentsOnNextLine: true # AV ok(?)
AllowAllConstructorInitializersOnNextLine: true # AV ok (NB: relevant only if ConstructorInitializerAllOnOneLineOrOnePerLine=true)
AllowAllParametersOfDeclarationOnNextLine: true # AV ok(?)
AllowShortBlocksOnASingleLine: Always # AV was Never
AllowShortEnumsOnASingleLine: true # AV ok
AllowShortCaseLabelsOnASingleLine: true # AV was false
AllowShortFunctionsOnASingleLine: All # AV ok
AllowShortLambdasOnASingleLine: All # AV ok
AllowShortIfStatementsOnASingleLine: WithoutElse # AV ok
AllowShortLoopsOnASingleLine: true # AV ok
###AlwaysBreakAfterDefinitionReturnType: None # AV keep defaults (deprecated)
#AlwaysBreakAfterReturnType: All # AV use this initially, then switch to TopLevelDefinitions!
AlwaysBreakAfterReturnType: TopLevelDefinitions # AV was None (altearnative: All?)
AlwaysBreakBeforeMultilineStrings: false # AV was true
AlwaysBreakTemplateDeclarations: Yes # AV ok
###AttributeMacros: # AV keep defaults (NB this is not about '__host__' attributes, see llvm/llvm-project/issues/45968)
### - __capability
BinPackArguments: false # AV was true
BinPackParameters: false # AV was true
BitFieldColonSpacing: Both # AV ok
BraceWrapping: # (NB: this is only relevant for "BreakBeforeBraces: Custom")
AfterCaseLabel: true # AV was false
AfterClass: true # AV was false
AfterControlStatement: Always # AV was Never
AfterEnum: true # AV was false
AfterFunction: true # AV was false
AfterNamespace: true # AV was false
AfterObjCDeclaration: true # AV was false
AfterStruct: true # AV was false
AfterUnion: true # AV was false
AfterExternBlock: true # AV was false (NB: does not work unless IndentExternBlock is AfterExternBlock?!)
BeforeCatch: true # AV was false
BeforeElse: true # AV was false
BeforeLambdaBody: true # AV was false
BeforeWhile: true # AV was false
IndentBraces: false # AV ok
SplitEmptyFunction: true # AV ok
SplitEmptyRecord: true # AV ok
SplitEmptyNamespace: true # AV ok
BreakAfterJavaFieldAnnotations: false
BreakBeforeBinaryOperators: None # AV ok
BreakBeforeBraces: Custom # AV was Attach (alternative: Allman)
BreakBeforeConceptDeclarations: true # AV ok
###BreakBeforeInheritanceComma: false # (obsolete???)
BreakBeforeTernaryOperators: true # AV ok
###BreakConstructorInitializersBeforeComma: true # AV was false (obsolete???)
BreakConstructorInitializers: BeforeComma # AV was BeforeColon
BreakInheritanceList: BeforeColon # AV ok (alternative: BeforeComma?)
BreakStringLiterals: false # AV was true
ColumnLimit: 0 # AV was 80
###CommentPragmas: '^[^ ]*' # AV use SpacesInLineCommentPrefix Min=0 Max=1 to allow both "//comment" and "// comment"
CompactNamespaces: false # AV ok
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 2 # AV was 4
ContinuationIndentWidth: 2 # AV was 4
Cpp11BracedListStyle: true # AV ok
DeriveLineEnding: false # AV was true
DerivePointerAlignment: false # AV was true
DisableFormat: false # AV ok
EmptyLineAfterAccessModifier: Leave # AV was Never
EmptyLineBeforeAccessModifier: Leave # AV was LogicalBlock
ExperimentalAutoDetectBinPacking: false # AV ok ("use at your own risk")
FixNamespaceComments: false # AV was true
###ForEachMacros: # AV keep defaults
### - foreach
### - Q_FOREACH
### - BOOST_FOREACH
###IfMacros: # AV keep defaults
### - KJ_IF_MAYBE
IncludeBlocks: Regroup # AV ok
IncludeCategories:
- Regex: '^<ext/.*\.h>'
Priority: 4 # AV was 2
SortPriority: 0
CaseSensitive: false
- Regex: '^<.*\.h>'
Priority: 5 # AV was 1
SortPriority: 0
CaseSensitive: false
- Regex: '^<.*'
Priority: 6 # AV was 2
SortPriority: 0
CaseSensitive: false
- Regex: 'mgOnGpuConfig.h'
Priority: 1 # AV new
SortPriority: 0
CaseSensitive: false
- Regex: 'mgOnGpu*.*'
Priority: 2 # AV new
SortPriority: 0
CaseSensitive: false
- Regex: '.*'
Priority: 3 # AV was 3
SortPriority: 0
CaseSensitive: false
###IncludeIsMainRegex: '([-_](test|unittest))?$' # AV keep defaults
###IncludeIsMainSourceRegex: '' # AV keep defaults
IndentAccessModifiers: false # AV ok
IndentCaseLabels: true # AV ok
IndentCaseBlocks: false # AV ok
IndentGotoLabels: false # AV was true
IndentPPDirectives: None # AV ok (NB: AfterHash and BeforeHash do not seem to work as intended)
###IndentExternBlock: Indent # AV was AfterExternBlock
IndentExternBlock: AfterExternBlock # AV ok (only with Custom BraceWrapping.AfterExternBlock = true)
IndentRequires: false # AV ok(?)
IndentWidth: 2 # AV ok
IndentWrappedFunctionNames: false # AV ok
###InsertTrailingCommas: None # AV keep defaults (Java only?)
###JavaScriptQuotes: Leave # AV irrelevant
###JavaScriptWrapImports: true # AV irrelevant
KeepEmptyLinesAtTheStartOfBlocks: false # AV ok
LambdaBodyIndentation: Signature # AV ok
###MacroBlockBegin: '' # AV keep defaults
###MacroBlockEnd: '' # AV keep defaults
MaxEmptyLinesToKeep: 1 # AV ok
NamespaceIndentation: All # AV was None
###ObjCBinPackProtocolList: Never # AV irrelevant
###ObjCBlockIndentWidth: 2 # AV irrelevant
###ObjCBreakBeforeNestedBlockParam: true # AV irrelevant
###ObjCSpaceAfterProperty: false # AV irrelevant
###ObjCSpaceBeforeProtocolList: true # AV irrelevant
###PenaltyBreakAssignment: 2 # AV keep defaults
###PenaltyBreakBeforeFirstCallParameter: 1 # AV keep defaults
###PenaltyBreakComment: 300 # AV keep defaults
###PenaltyBreakFirstLessLess: 120 # AV keep defaults
###PenaltyBreakString: 1000 # AV keep defaults
###PenaltyBreakTemplateDeclaration: 10 # AV keep defaults
###PenaltyExcessCharacter: 1000000 # AV keep defaults
###PenaltyReturnTypeOnItsOwnLine: 200 # AV keep defaults
###PenaltyIndentedWhitespace: 0 # AV keep defaults
PointerAlignment: Left # AV ok
PPIndentWidth: 0 # AV was -1
###RawStringFormats: # AV keep defaults
### - Language: Cpp
### Delimiters:
### - cc
### - CC
### - cpp
### - Cpp
### - CPP
### - 'c++'
### - 'C++'
### CanonicalDelimiter: ''
### BasedOnStyle: google
### - Language: TextProto
### Delimiters:
### - pb
### - PB
### - proto
### - PROTO
### EnclosingFunctions:
### - EqualsProto
### - EquivToProto
### - PARSE_PARTIAL_TEXT_PROTO
### - PARSE_TEST_PROTO
### - PARSE_TEXT_PROTO
### - ParseTextOrDie
### - ParseTextProtoOrDie
### - ParseTestProto
### - ParsePartialTestProto
### CanonicalDelimiter: pb
### BasedOnStyle: google
ReferenceAlignment: Pointer # AV ok
ReflowComments: false # AV was true
ShortNamespaceLines: 1 # AV ok
SortIncludes: CaseSensitive # AV ok
###SortJavaStaticImport: Before # irrelevant
SortUsingDeclarations: false # AV was true
SpaceAfterCStyleCast: false # AV ok
SpaceAfterLogicalNot: false # AV ok
SpaceAfterTemplateKeyword: false # AV was true
SpaceAroundPointerQualifiers: Default # AV ok (alternative: Before?)
SpaceBeforeAssignmentOperators: true # AV ok
SpaceBeforeCaseColon: false # AV ok
SpaceBeforeCpp11BracedList: false # AV ok
SpaceBeforeCtorInitializerColon: true # AV ok
SpaceBeforeInheritanceColon: true # AV ok
SpaceBeforeParens: Never # AV was ControlStatements
SpaceBeforeRangeBasedForLoopColon: false # AV was true
SpaceBeforeSquareBrackets: false # AV ok
SpaceInEmptyBlock: false # AV ok
SpaceInEmptyParentheses: false # AV ok
SpacesBeforeTrailingComments: 1 # AV was 2
SpacesInAngles: Never # AV ok
SpacesInConditionalStatement: false # AV ok (does this work?)
SpacesInContainerLiterals: false # AV was true
SpacesInCStyleCastParentheses: false # AV ok
SpacesInLineCommentPrefix:
Minimum: 0 # AV was 1
Maximum: 1 # AV was -1
SpacesInParentheses: true # AV was false
SpacesInSquareBrackets: false # AV ok
Standard: c++17 # AV was Auto
###StatementAttributeLikeMacros: # AV keep defaults
### - Q_EMIT
###StatementMacros: # AV keep defaults
### - Q_UNUSED
### - QT_REQUIRE_VERSION
###TabWidth: 8 # AV irrelevant if UseTab=Never?
UseCRLF: false # AV ok (but set DeriveLineEnding=false)
UseTab: Never # AV ok
###WhitespaceSensitiveMacros: # AV keep defaults
### - STRINGIZE
### - PP_STRINGIZE
### - BOOST_PP_STRINGIZE
### - NS_SWIFT_NAME
### - CF_SWIFT_NAME
...
2 changes: 2 additions & 0 deletions epochX/cudacpp/smeft_gg_tttt.sa/CMake/Compilers.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
10 changes: 10 additions & 0 deletions epochX/cudacpp/smeft_gg_tttt.sa/CMake/Macros.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
MACRO(SUBDIRLIST result)
FILE(GLOB children RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*)
SET(dirlist "")
FOREACH(child ${children})
IF(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${child})
LIST(APPEND dirlist ${child})
ENDIF()
ENDFOREACH()
SET(${result} ${dirlist})
ENDMACRO()
3 changes: 3 additions & 0 deletions epochX/cudacpp/smeft_gg_tttt.sa/CMake/Platforms.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if (CMAKE_HOST_APPLE)
add_definitions(-DMGONGPU_HAS_NO_CURAND)
endif(CMAKE_HOST_APPLE)
14 changes: 14 additions & 0 deletions epochX/cudacpp/smeft_gg_tttt.sa/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Minimal CMake configuration to build a functional CPU version

cmake_minimum_required(VERSION 3.22)

project(Madgraph4GPU)

include(${PROJECT_SOURCE_DIR}/CMake/Platforms.txt)
include(${PROJECT_SOURCE_DIR}/CMake/Compilers.txt)
include(${PROJECT_SOURCE_DIR}/CMake/Macros.txt)

set(PROJECT_GITROOT_DIR ${PROJECT_SOURCE_DIR}/../../..)

add_subdirectory(src)
add_subdirectory(SubProcesses)
Loading

0 comments on commit 8904e13

Please sign in to comment.