1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-18 15:57:05 +01:00

guard prevents multiple A64FX build messages

This commit is contained in:
nmeyer-ur
2020-05-20 19:16:30 +02:00
parent 6b6bf537d3
commit 9e085bd04e
4 changed files with 37 additions and 6 deletions

View File

@ -39,7 +39,7 @@
// gcc 10 features
#if __ARM_FEATURE_SVE_BITS==512
#pragma message("Fixed-size SVE ACLE")
#pragma message("building for A64FX / fixed SVE data type size")
/* gcc 10.0.1 and gcc 10.1 bug using ACLE data types CAS-159553-Y1K4C6
workaround: use gcc's internal data types, bugfix expected for gcc 10.2
typedef svbool_t pred __attribute__((arm_sve_vector_bits(512)));

View File

@ -120,11 +120,15 @@ accelerator_inline Grid_half sfw_float_to_half(float ff) {
#if defined(A64FX) || defined(A64FXFIXEDSIZE) // breakout A64FX SVE ACLE here
#include <arm_sve.h>
#if defined(A64FX) // VLA
#ifndef MSGVLA
#pragma message("building for A64FX / SVE ACLE VLA")
#define MSGVLA
#endif
#if defined(ARMCLANGCOMPAT)
#ifndef MSGCOMPAT
#pragma message("applying armclang fix")
//#else
//#pragma message("not applying armclang fix")
#define MSGCOMPAT
#endif
#endif
#include "Grid_a64fx-2.h"
#endif
@ -132,7 +136,10 @@ accelerator_inline Grid_half sfw_float_to_half(float ff) {
#include "Grid_a64fx-fixedsize.h"
#endif
#else
#ifndef MSGGEN
#pragma message("building for GEN") // generic
#define MSGGEN
#endif
#include "Grid_generic.h"
#endif
#endif