1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-09-20 17:25:37 +01:00

reduce acle revised

This commit is contained in:
nmeyer-ur 2020-04-03 19:46:15 +02:00
parent 46927771e3
commit b27e31957a

View File

@ -772,7 +772,7 @@ struct Rotate{
}; };
// ======================================================================= // =======================================================================
/* SVE ACLE reduce does not compile, check later // SVE ACLE reduce does not compile, check later
// tree-based reduction // tree-based reduction
#define svred(pg, v)\ #define svred(pg, v)\
@ -786,7 +786,7 @@ template <typename Out_type, typename In_type>
struct Reduce{ struct Reduce{
//Need templated class to overload output type //Need templated class to overload output type
//General form must generate error if compiled //General form must generate error if compiled
inline Out_type operator()(In_type &in){ inline Out_type operator()(In_type in){
printf("Error, using wrong Reduce function\n"); printf("Error, using wrong Reduce function\n");
exit(1); exit(1);
return 0; return 0;
@ -856,11 +856,11 @@ inline Integer Reduce<Integer, veci>::operator()(veci in){
} }
#undef svred #undef svred
*/
// ======================================================================= // =======================================================================
/*
#define acc(v, a, off, step, n)\ #define acc(v, a, off, step, n)\
for (unsigned int i = off; i < n; i += step)\ for (unsigned int i = off; i < n; i += step)\
{\ {\
@ -931,7 +931,7 @@ inline Integer Reduce<Integer, veci>::operator()(veci in){
} }
#undef acc // EIGEN compatibility #undef acc // EIGEN compatibility
*/
NAMESPACE_END(Optimization) NAMESPACE_END(Optimization)