mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-04 14:04:32 +00:00 
			
		
		
		
	GPU loop ; presently differentiated with ifdef, find a way to unify.
This commit is contained in:
		@@ -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);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user