Skip to content

Commit

Permalink
Use proper pragma for Intel compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrack committed Mar 23, 2021
1 parent d517eac commit e7dc1a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/grid/common/grid_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
#define GRID_STRINGIFY(SYMBOL) #SYMBOL

// GCC introduced the unroll pragma with version 8 using a custom syntax.
#if defined(__GNUC__) && __GNUC__ >= 8
#if defined(__INTEL_COMPILER)
#define GRID_PRAGMA_UNROLL(N) _Pragma(GRID_STRINGIFY(unroll(N)))
#elif defined(__GNUC__) && __GNUC__ >= 8
#define GRID_PRAGMA_UNROLL(N) _Pragma(GRID_STRINGIFY(GCC unroll N))
#elif defined(__GNUC__) && __GNUC__ < 8
#define GRID_PRAGMA_UNROLL(N)
Expand Down

0 comments on commit e7dc1a9

Please sign in to comment.