mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
reverted changes
This commit is contained in:
parent
ceb8b374da
commit
55a55660cb
@ -30,6 +30,11 @@
|
|||||||
// Using SVE ACLE
|
// Using SVE ACLE
|
||||||
/////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/* TODO
|
||||||
|
* Exchange
|
||||||
|
* prefetching
|
||||||
|
*/
|
||||||
|
|
||||||
//#ifndef GEN_SIMD_WIDTH
|
//#ifndef GEN_SIMD_WIDTH
|
||||||
//#define GEN_SIMD_WIDTH 64u
|
//#define GEN_SIMD_WIDTH 64u
|
||||||
//#endif
|
//#endif
|
||||||
@ -436,12 +441,12 @@ struct PrecisionChange {
|
|||||||
vecf sb_v = svcvt_f32_x(pg1d, b);
|
vecf sb_v = svcvt_f32_x(pg1d, b);
|
||||||
return svuzp1(sa_v, sb_v);
|
return svuzp1(sa_v, sb_v);
|
||||||
}
|
}
|
||||||
static inline void StoD (vecf s,vecd *a,vecd *b) {
|
static inline void StoD (vecf s,vecd &a,vecd &b) {
|
||||||
pred pg1d = acle<double>::pg1();
|
pred pg1d = acle<double>::pg1();
|
||||||
vecf sa_v = svzip1(s, s);
|
vecf sa_v = svzip1(s, s);
|
||||||
vecf sb_v = svzip2(s, s);
|
vecf sb_v = svzip2(s, s);
|
||||||
*a = svcvt_f64_x(pg1d, sa_v);
|
a = svcvt_f64_x(pg1d, sa_v);
|
||||||
*b = svcvt_f64_x(pg1d, sb_v);
|
b = svcvt_f64_x(pg1d, sb_v);
|
||||||
}
|
}
|
||||||
static inline vech DtoH (vecd a,vecd b,vecd c,vecd d) {
|
static inline vech DtoH (vecd a,vecd b,vecd c,vecd d) {
|
||||||
/*
|
/*
|
||||||
|
@ -958,6 +958,7 @@ accelerator_inline void precisionChange(vRealD *out,vRealF *in,int nvec)
|
|||||||
assert((nvec&0x1)==0);
|
assert((nvec&0x1)==0);
|
||||||
for(int m=0;m*2<nvec;m++){
|
for(int m=0;m*2<nvec;m++){
|
||||||
int n=m*2;
|
int n=m*2;
|
||||||
|
Optimization::PrecisionChange::StoD(in[m].v,out[n].v,out[n+1].v);
|
||||||
// A64FXFIXEDSIZE FIXME
|
// A64FXFIXEDSIZE FIXME
|
||||||
// function call results in compile-time error:
|
// function call results in compile-time error:
|
||||||
// In function ‘void Grid::precisionChange(Grid::vRealD*, Grid::vRealF*, int)’:
|
// In function ‘void Grid::precisionChange(Grid::vRealD*, Grid::vRealF*, int)’:
|
||||||
@ -966,8 +967,6 @@ accelerator_inline void precisionChange(vRealD *out,vRealF *in,int nvec)
|
|||||||
// to an rvalue of type ‘vecd’ {aka ‘svfloat64_t’}
|
// to an rvalue of type ‘vecd’ {aka ‘svfloat64_t’}
|
||||||
// 961 | Optimization::PrecisionChange::StoD(in[m].v,out[n].v,out[n+1].v);
|
// 961 | Optimization::PrecisionChange::StoD(in[m].v,out[n].v,out[n+1].v);
|
||||||
// | ~~~~~~~^
|
// | ~~~~~~~^
|
||||||
// Optimization::PrecisionChange::StoD(in[m].v,out[n].v,out[n+1].v);
|
|
||||||
Optimization::PrecisionChange::StoD(in[m].v,&out[n].v,&out[n+1].v);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
accelerator_inline void precisionChange(vRealD *out,vRealH *in,int nvec)
|
accelerator_inline void precisionChange(vRealD *out,vRealH *in,int nvec)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user