Skip to content

Commit

Permalink
[cpp17] require gcc>=9.3 (madgraph5#96) - it was observed in the past…
Browse files Browse the repository at this point in the history
… that OpenMP required this (madgraph5#269)
  • Loading branch information
valassi committed Jan 26, 2022
1 parent f4c80a1 commit 9f86299
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion epochX/cudacpp/ee_mumu/src/mgOnGpuConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,14 @@ using mgOnGpu::fptype;
// For SANITY CHECKS: check that neppR, neppM, neppV... are powers of two (https://stackoverflow.com/a/108360)
inline constexpr bool ispoweroftwo( int n ){ return ( n > 0 ) && !( n & ( n - 1 ) ); }

// Compiler version support (#96): need CUDA >= 11.2 to use C++17 (see #333)
// Compiler version support (#96): require gcc >= 9.3, e.g. for some OMP issues (see #269)
#if defined __GNUC__
#if ( __GNUC__ < 9 ) || ( __GNUC__ == 9 && __GNUC_MINOR__ < 3 )
#error Unsupported gcc version: please gcc >= 9.3
#endif
#endif

// Compiler version support (#96): require CUDA >= 11.2, e.g. to use C++17 (see #333)
#ifdef __CUDACC__
#if ( __CUDACC_VER_MAJOR__ < 11 ) || ( __CUDACC_VER_MAJOR__ == 11 && __CUDACC_VER_MINOR__ < 2 )
#error Unsupported CUDA version: please use CUDA >= 11.2
Expand Down

0 comments on commit 9f86299

Please sign in to comment.