1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-07-12 11:17:07 +01:00

Hack to force 128bit accesses

This commit is contained in:
Peter Boyle
2018-07-23 06:10:27 -04:00
parent b35401b86b
commit 28db0631ff
2 changed files with 70 additions and 28 deletions

View File

@ -396,8 +396,22 @@ public:
const typename SiteHalfSpinor::scalar_object &chi,
int mu)
{
auto U_l = U(mu);
#if 1
typedef typename ExtractTypeMap<typename Simd::scalar_type>::extract_type extract_type;
SiteScalarGaugeLink U_l;
extract_type * U_mem = (extract_type *) &U(mu);
extract_type * U_stack= (extract_type *) &U_l;
for(int w=0;w<(sizeof(U_l)/sizeof(extract_type)) ;w++) U_stack[w] = U_mem[w];
phi() = U_l() * chi();
#else
auto U_l = U(mu);
phi() = U_l * chi();
#endif
}
#else
static accelerator_inline void multLinkGpu(int lane,