mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
GPU loop ; presently differentiated with ifdef, find a way to unify.
This commit is contained in:
parent
9636324069
commit
8eea568426
@ -68,9 +68,7 @@ void Gather_plane_simple_table (Vector<std::pair<int,int> >& table,const Lattice
|
|||||||
int num=table.size();
|
int num=table.size();
|
||||||
std::pair<int,int> *table_v = & table[0];
|
std::pair<int,int> *table_v = & table[0];
|
||||||
auto rhs_v = rhs.View();
|
auto rhs_v = rhs.View();
|
||||||
// auto tmp_ucc = coalescedRead(rhs_v[so+table_v[0].second]);
|
#ifdef GRID_NVCC
|
||||||
// coalescedWrite(rhs_v[so+table_v[0].second],tmp_ucc);
|
|
||||||
#if 1
|
|
||||||
typedef typename vobj::scalar_type scalar_type;
|
typedef typename vobj::scalar_type scalar_type;
|
||||||
typedef typename vobj::vector_type vector_type;
|
typedef typename vobj::vector_type vector_type;
|
||||||
constexpr int Nsimd = sizeof(vector_type)/sizeof(scalar_type);
|
constexpr int Nsimd = sizeof(vector_type)/sizeof(scalar_type);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user