mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-03 21:44:33 +00:00 
			
		
		
		
	Threading support rework.
Placed parallel pragmas as macros; implemented deterministic thread reduction in style of BFM.
This commit is contained in:
		@@ -1,9 +1,7 @@
 | 
			
		||||
#ifndef GRID_QCD_TWOSPIN_H
 | 
			
		||||
#define GRID_QCD_TWOSPIN_H
 | 
			
		||||
namespace Grid{
 | 
			
		||||
 | 
			
		||||
namespace QCD {
 | 
			
		||||
  
 | 
			
		||||
 | 
			
		||||
  //////////////////////////////////////////////////////////////////////////////////////////////////////
 | 
			
		||||
  // Normalisation alert; the g5   project is 1/2(1+-G5) 
 | 
			
		||||
@@ -1073,10 +1071,6 @@ namespace QCD {
 | 
			
		||||
      spProj5m(hspin._internal[i][j],fspin._internal[i][j]);
 | 
			
		||||
    }}
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
}   //namespace QCD
 | 
			
		||||
} // Grid
 | 
			
		||||
#endif
 | 
			
		||||
 
 | 
			
		||||
@@ -103,7 +103,7 @@ void WilsonMatrix::Dhop(const LatticeFermion &in, LatticeFermion &out)
 | 
			
		||||
  vHalfSpinColourVector *chi_p;
 | 
			
		||||
  int offset,local,perm, ptype;
 | 
			
		||||
 | 
			
		||||
#pragma omp parallel for
 | 
			
		||||
PARALLEL_FOR_LOOP
 | 
			
		||||
  for(int sss=0;sss<grid->oSites();sss++){
 | 
			
		||||
 | 
			
		||||
    int ss = sss;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user