mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-04 14:04:32 +00:00 
			
		
		
		
	Best option for Xeon cache blocking set
This commit is contained in:
		@@ -32,8 +32,11 @@ Author: paboyle <paboyle@ph.ed.ac.uk>
 | 
				
			|||||||
namespace Grid {
 | 
					namespace Grid {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int LebesgueOrder::UseLebesgueOrder;
 | 
					int LebesgueOrder::UseLebesgueOrder;
 | 
				
			||||||
 | 
					#ifdef KNL
 | 
				
			||||||
std::vector<int> LebesgueOrder::Block({8,2,2,2});
 | 
					std::vector<int> LebesgueOrder::Block({8,2,2,2});
 | 
				
			||||||
 | 
					#else
 | 
				
			||||||
 | 
					std::vector<int> LebesgueOrder::Block({2,2,2,2});
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
LebesgueOrder::IndexInteger LebesgueOrder::alignup(IndexInteger n){
 | 
					LebesgueOrder::IndexInteger LebesgueOrder::alignup(IndexInteger n){
 | 
				
			||||||
  n--;           // 1000 0011 --> 1000 0010
 | 
					  n--;           // 1000 0011 --> 1000 0010
 | 
				
			||||||
  n |= n >> 1;   // 1000 0010 | 0100 0001 = 1100 0011
 | 
					  n |= n >> 1;   // 1000 0010 | 0100 0001 = 1100 0011
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user