From b569baafb5d6cc239f987ade522246f8757c0052 Mon Sep 17 00:00:00 2001 From: Sebastian Grimberg Date: Tue, 2 Jan 2024 22:37:21 -0800 Subject: [PATCH] Define CeedPragmaSIMD for Clang (#1432) * Define CeedPragmaSIMD for Clang * Change clang loop vectorization pragma --- include/ceed/types.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/ceed/types.h b/include/ceed/types.h index b6540d01e4..a342aa6452 100644 --- a/include/ceed/types.h +++ b/include/ceed/types.h @@ -87,6 +87,8 @@ values for CPU backends. /// Miscompilation with pragma ivdep observed with icc (ICC) 19.0.5.281 20190815 at -O2 and above. #elif defined(__GNUC__) && __GNUC__ >= 5 #define CeedPragmaSIMD _Pragma("GCC ivdep") +#elif defined(__clang__) +#define CeedPragmaSIMD _Pragma("clang loop vectorize(enable)") #elif defined(_OPENMP) && _OPENMP >= 201307 // OpenMP-4.0 (July, 2013) #define CeedPragmaSIMD _Pragma("omp simd") #else