mirror of
https://github.com/paboyle/Grid.git
synced 2025-06-19 08:17:05 +01:00
guard prevents multiple A64FX build messages
This commit is contained in:
@ -39,16 +39,16 @@ Author: Nils Meyer <nils.meyer@ur.de> Regensburg University
|
||||
|
||||
// enable A64FX body
|
||||
#define WILSONKERNELSASMBODYA64FX
|
||||
#pragma message("Including A64FX Dslash: WilsonKernelsAsmBodyA64FX.h")
|
||||
#pragma message("A64FX Dslash: WilsonKernelsAsmBodyA64FX.h")
|
||||
|
||||
///////////////////////////////////////////////////////////
|
||||
// If we are A64FX specialise the single precision routine
|
||||
///////////////////////////////////////////////////////////
|
||||
#if defined(DSLASHINTRIN)
|
||||
#pragma message ("including A64FX Dslash: intrin")
|
||||
#pragma message ("A64FX Dslash: intrin")
|
||||
#include <simd/Fujitsu_A64FX_intrin_single.h>
|
||||
#else
|
||||
#pragma message ("including A64FX Dslash: asm")
|
||||
#pragma message ("A64FX Dslash: asm")
|
||||
#include <simd/Fujitsu_A64FX_asm_single.h>
|
||||
#endif
|
||||
|
||||
|
@ -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)));
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user