From bf2d1db49da1426607692d7eb4c2e29e622b8911 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sat, 22 May 2021 21:28:39 -0400 Subject: [PATCH] PGI compiler can handle restrict and aligned attributes --- src/lmptype.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lmptype.h b/src/lmptype.h index 7ebba0ba12..9e25a00f18 100644 --- a/src/lmptype.h +++ b/src/lmptype.h @@ -244,7 +244,7 @@ union ubuf { #if defined(__INTEL_LLVM_COMPILER) || defined(__INTEL_COMPILER) #define _alignvar(expr, val) __declspec(align(val)) expr -#elif defined(__GNUC__) +#elif defined(__GNUC__) || defined(__PGI) #define _alignvar(expr, val) expr __attribute((aligned(val))) #else #define _alignvar(expr, val) expr @@ -252,7 +252,7 @@ union ubuf { // declaration to lift aliasing restrictions -#if defined(__INTEL_COMPILER) +#if defined(__INTEL_COMPILER) || defined(__PGI) #define _noalias restrict #elif defined(__GNUC__) || defined(__INTEL_LLVM_COMPILER) #define _noalias __restrict