mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-04 14:04:32 +00:00 
			
		
		
		
	The threaded coms didn't agree with GCC. Suprised, and looks like GCC bug.
This commit is contained in:
		@@ -594,8 +594,11 @@ PARALLEL_FOR_LOOP
 | 
			
		||||
      template<class compressor>
 | 
			
		||||
      void HaloExchange(const Lattice<vobj> &source,compressor &compress) 
 | 
			
		||||
      {
 | 
			
		||||
	auto thr = HaloExchangeBegin(source,compress);
 | 
			
		||||
        HaloExchangeComplete(thr);
 | 
			
		||||
	Mergers.resize(0); 
 | 
			
		||||
	Packets.resize(0);
 | 
			
		||||
	HaloGather(source,compress);
 | 
			
		||||
	Communicate();
 | 
			
		||||
	CommsMerge();
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      void HaloExchangeComplete(std::thread &thr) 
 | 
			
		||||
 
 | 
			
		||||
@@ -359,8 +359,9 @@ void WilsonFermion5D<Impl>::DhopInternalCommsThenCompute(StencilImpl & st, Lebes
 | 
			
		||||
  int LLs = in._grid->_rdimensions[0];
 | 
			
		||||
  
 | 
			
		||||
  commtime -=usecond();
 | 
			
		||||
  auto handle = st.HaloExchangeBegin(in,compressor);
 | 
			
		||||
  st.HaloExchangeComplete(handle);
 | 
			
		||||
  //  auto handle = st.HaloExchangeBegin(in,compressor);
 | 
			
		||||
  //  st.HaloExchangeComplete(handle);
 | 
			
		||||
  st.HaloExchange(in,compressor);
 | 
			
		||||
  commtime +=usecond();
 | 
			
		||||
 | 
			
		||||
  jointime -=usecond();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user