1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

GEN seems to defined by default -> some fixes applied

This commit is contained in:
nmeyer-ur 2020-05-08 10:47:49 +02:00
parent f45621109b
commit 48a340a9d1
2 changed files with 23 additions and 16 deletions

View File

@ -43,6 +43,9 @@
#pragma error "Missing SVE feature"
#endif /* __ARM_FEATURE_SVE */
// safety definition, not sure if it's important
#define GEN_SIMD_WIDTH 64u
// low-level API
NAMESPACE_BEGIN(Grid);
NAMESPACE_BEGIN(Optimization);

View File

@ -115,6 +115,10 @@ accelerator_inline Grid_half sfw_float_to_half(float ff) {
#include "Grid_generic.h"
#endif
*/
// A64FX with gcc 10
#ifdef A64FXGCC
#include "Grid_a64fx-fixedsize.h"
#else
#ifdef GEN
#if defined(A64FX) // breakout A64FX SVE ACLE here
#pragma message("building for A64FX / SVE ACLE VLA")
@ -129,11 +133,11 @@ accelerator_inline Grid_half sfw_float_to_half(float ff) {
#pragma message("building for A64FX / GEN")
#include "Grid_generic.h"
#endif
#else
#pragma error("Undefined architecture")
#endif
// A64FX with gcc 10
#ifdef A64FXGCC
#include "Grid_a64fx-fixedsize.h"
#endif
#ifdef SSE4
#include "Grid_sse4.h"
#endif