Skip to content

Commit

Permalink
[susy2] in susyggtt.sa Parameters.h, move non-constexper Majorana fix…
Browse files Browse the repository at this point in the history
…es from printParameters to setParameters

The HRDCOD=1 build now fails with

ccache /usr/local/cuda-12.0/bin/nvcc  -O3  -lineinfo -I. -I../../src -I../../../../../tools -I/usr/local/cuda-12.0/include/ -DUSE_NVTX -gencode arch=compute_70,code=compute_70 -gencode arch=compute_70,code=sm_70 -use_fast_math -std=c++17  -ccbin /usr/lib64/ccache/g++ -DMGONGPU_FPTYPE_DOUBLE -DMGONGPU_FPTYPE2_DOUBLE -DMGONGPU_HARDCODE_PARAM -Xcompiler -fPIC -c gcheck_sa.cu -o gcheck_sa.o
../../src/Parameters_MSSM_SLHA2.h(310): error: expression must have a constant value
../../src/Parameters_MSSM_SLHA2.h(310): note #2703-D: cannot call non-constexpr function "atan(double) noexcept(true)"
/usr/local/cuda-12.0/include/crt/math_functions.h(4137): here
../../src/Parameters_MSSM_SLHA2.h(725): error: expression must have a constant value
../../src/Parameters_MSSM_SLHA2.h(725): note #2703-D: cannot call non-constexpr function "cos(double) noexcept(true)"
/usr/local/cuda-12.0/include/crt/math_functions.h(553): here
../../src/Parameters_MSSM_SLHA2.h(726): error: expression must have a constant value
../../src/Parameters_MSSM_SLHA2.h(726): note #2703-D: cannot call non-constexpr function "sin(double) noexcept(true)"
/usr/local/cuda-12.0/include/crt/math_functions.h(520): here
3 errors detected in the compilation of "gcheck_sa.cu".

The CUDA_HOME=none HRDCOD=0 build also fails with
ccache g++  -O3  -std=c++17 -I. -I../../src -I../../../../../tools  -Wall -Wshadow -Wextra -ffast-math  -fopenmp -march=skylake-avx512 -mprefer-vector-width=256  -DMGONGPU_FPTYPE_DOUBLE -DMGONGPU_FPTYPE2_DOUBLE -DMGONGPU_HARDCODE_PARAM -DMGONGPU_HAS_NO_CURAND  -fPIC -c CPPProcess.cc -o CPPProcess.o
CPPProcess.cc: In function ‘void mg5amcCpu::calculate_wavefunctions(int, const fptype*, const fptype*, mgOnGpu::fptype*, fptype_sv*, int)’:
CPPProcess.cc:241:81: error: wrong type argument to unary minus
  241 |       FFV1_0<W_ACCESS, A_ACCESS, CD_ACCESS>( w_fp[3], w_fp[2], w_fp[4], -COUPs[1], &amp_fp[0] );
      |                                                                          ~~~~~~~^
CPPProcess.cc:251:62: error: wrong type argument to unary minus
  251 |       FFV1_1<W_ACCESS, CD_ACCESS>( w_fp[2], w_fp[0], -COUPs[1], cIPD[0], cIPD[1], w_fp[4] );
      |                                                       ~~~~~~~^
CPPProcess.cc:254:81: error: wrong type argument to unary minus
  254 |       FFV1_0<W_ACCESS, A_ACCESS, CD_ACCESS>( w_fp[3], w_fp[4], w_fp[1], -COUPs[1], &amp_fp[0] );
      |                                                                          ~~~~~~~^
CPPProcess.cc:263:62: error: wrong type argument to unary minus
  263 |       FFV1_2<W_ACCESS, CD_ACCESS>( w_fp[3], w_fp[0], -COUPs[1], cIPD[0], cIPD[1], w_fp[4] );
      |                                                       ~~~~~~~^
CPPProcess.cc:266:81: error: wrong type argument to unary minus
  266 |       FFV1_0<W_ACCESS, A_ACCESS, CD_ACCESS>( w_fp[4], w_fp[2], w_fp[1], -COUPs[1], &amp_fp[0] );
      |                                                                          ~~~~~~~^
  • Loading branch information
valassi committed Apr 3, 2023
1 parent 36dfe05 commit 586195d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions epochX/cudacpp/susy_gg_tt.sa/src/Parameters_MSSM_SLHA2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,14 @@ Parameters_MSSM_SLHA2::setIndependentParameters( SLHAReader& slha )
mdl_vd = mdl_vev * mdl_cos__beta;
mdl_vu = mdl_vev * mdl_sin__beta;
mdl_ee__exp__2 = ( ( mdl_ee ) * ( mdl_ee ) );
if( mdl_Mneu2 < 0 )
mdl_Wneu2 = -abs( mdl_Wneu2 );
if( mdl_Mneu3 < 0 )
mdl_Wneu3 = -abs( mdl_Wneu3 );
if( mdl_Mneu4 < 0 )
mdl_Wneu4 = -abs( mdl_Wneu4 );
if( mdl_Mgo < 0 )
mdl_Wgo = -abs( mdl_Wgo );
}

void
Expand Down Expand Up @@ -1443,14 +1451,6 @@ Parameters_MSSM_SLHA2::printIndependentParameters()
std::cout << std::setw( 20 ) << "mdl_vd = " << std::setiosflags( std::ios::scientific ) << std::setw( 10 ) << mdl_vd << std::endl;
std::cout << std::setw( 20 ) << "mdl_vu = " << std::setiosflags( std::ios::scientific ) << std::setw( 10 ) << mdl_vu << std::endl;
std::cout << std::setw( 20 ) << "mdl_ee__exp__2 = " << std::setiosflags( std::ios::scientific ) << std::setw( 10 ) << mdl_ee__exp__2 << std::endl;
if( mdl_Mneu2 < 0 )
mdl_Wneu2 = -abs( mdl_Wneu2 );
if( mdl_Mneu3 < 0 )
mdl_Wneu3 = -abs( mdl_Wneu3 );
if( mdl_Mneu4 < 0 )
mdl_Wneu4 = -abs( mdl_Wneu4 );
if( mdl_Mgo < 0 )
mdl_Wgo = -abs( mdl_Wgo );
}

void
Expand Down

0 comments on commit 586195d

Please sign in to comment.