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

GPU loop ; presently differentiated with ifdef, find a way to unify.

This commit is contained in:
Peter Boyle 2019-06-05 00:09:28 +01:00
parent 9636324069
commit 8eea568426

View File

@ -68,9 +68,7 @@ void Gather_plane_simple_table (Vector<std::pair<int,int> >& table,const Lattice
int num=table.size();
std::pair<int,int> *table_v = & table[0];
auto rhs_v = rhs.View();
// auto tmp_ucc = coalescedRead(rhs_v[so+table_v[0].second]);
// coalescedWrite(rhs_v[so+table_v[0].second],tmp_ucc);
#if 1
#ifdef GRID_NVCC
typedef typename vobj::scalar_type scalar_type;
typedef typename vobj::vector_type vector_type;
constexpr int Nsimd = sizeof(vector_type)/sizeof(scalar_type);