Skip to content

Commit

Permalink
Add CMS_UNROLL_LOOP defines for Intel compilers and use with pragme o…
Browse files Browse the repository at this point in the history
…mp simd instructions that cause internal icc error
  • Loading branch information
gartung committed Jun 6, 2022
1 parent 45977ea commit 8618997
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions FWCore/Utilities/interface/CMSUnrollLoop.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
#define CMS_UNROLL_LOOP_COUNT(N) _Pragma(EDM_STRINGIZE(clang loop unroll_count(N)))
#define CMS_UNROLL_LOOP_DISABLE _Pragma(EDM_STRINGIZE(clang loop unroll(disable)))

#elif defined(__INTEL_COMPILER)
// Intel icc compiler
#define CMS_UNROLL_LOOP _Pragma(EDM_STRINGIFY(unroll))
#define CMS_UNROLL_LOOP_COUNT(N) _Pragma(EDM_STRINGIFY(unroll(N)))
#define CMS_UNROLL_LOOP_DISABLE _Pragma(EDM_STRINGIFY(nounroll))

#elif defined(__GNUC__)
// GCC host compiler

Expand Down

0 comments on commit 8618997

Please sign in to comment.