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:
parent
f45621109b
commit
48a340a9d1
@ -43,6 +43,9 @@
|
|||||||
#pragma error "Missing SVE feature"
|
#pragma error "Missing SVE feature"
|
||||||
#endif /* __ARM_FEATURE_SVE */
|
#endif /* __ARM_FEATURE_SVE */
|
||||||
|
|
||||||
|
// safety definition, not sure if it's important
|
||||||
|
#define GEN_SIMD_WIDTH 64u
|
||||||
|
|
||||||
// low-level API
|
// low-level API
|
||||||
NAMESPACE_BEGIN(Grid);
|
NAMESPACE_BEGIN(Grid);
|
||||||
NAMESPACE_BEGIN(Optimization);
|
NAMESPACE_BEGIN(Optimization);
|
||||||
|
@ -115,7 +115,11 @@ accelerator_inline Grid_half sfw_float_to_half(float ff) {
|
|||||||
#include "Grid_generic.h"
|
#include "Grid_generic.h"
|
||||||
#endif
|
#endif
|
||||||
*/
|
*/
|
||||||
#ifdef GEN
|
// A64FX with gcc 10
|
||||||
|
#ifdef A64FXGCC
|
||||||
|
#include "Grid_a64fx-fixedsize.h"
|
||||||
|
#else
|
||||||
|
#ifdef GEN
|
||||||
#if defined(A64FX) // breakout A64FX SVE ACLE here
|
#if defined(A64FX) // breakout A64FX SVE ACLE here
|
||||||
#pragma message("building for A64FX / SVE ACLE VLA")
|
#pragma message("building for A64FX / SVE ACLE VLA")
|
||||||
#if defined(ARMCLANGCOMPAT)
|
#if defined(ARMCLANGCOMPAT)
|
||||||
@ -129,11 +133,11 @@ accelerator_inline Grid_half sfw_float_to_half(float ff) {
|
|||||||
#pragma message("building for A64FX / GEN")
|
#pragma message("building for A64FX / GEN")
|
||||||
#include "Grid_generic.h"
|
#include "Grid_generic.h"
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
#pragma error("Undefined architecture")
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
// A64FX with gcc 10
|
|
||||||
#ifdef A64FXGCC
|
|
||||||
#include "Grid_a64fx-fixedsize.h"
|
|
||||||
#endif
|
|
||||||
#ifdef SSE4
|
#ifdef SSE4
|
||||||
#include "Grid_sse4.h"
|
#include "Grid_sse4.h"
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user