Skip to content

Commit

Permalink
update LLAMA_INDEPENDENT_DATA for icx
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Nov 4, 2021
1 parent 7bc8f7e commit 263b210
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/llama/macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
#endif

#if defined(__INTEL_LLVM_COMPILER)
# define LLAMA_INDEPENDENT_DATA _Pragma("ivdep")
// icx supports #pragma ivdep, but it will issue a diagnostic that it needs vectorize(assume_safety) to vectorize.
// Let's keep both pragmas for now.
# define LLAMA_INDEPENDENT_DATA \
_Pragma("ivdep") _Pragma("clang loop vectorize(assume_safety) interleave(assume_safety)")
#elif defined(__clang__)
# define LLAMA_INDEPENDENT_DATA _Pragma("clang loop vectorize(assume_safety) interleave(assume_safety)")
#elif defined(__GNUC__)
Expand Down

0 comments on commit 263b210

Please sign in to comment.