1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

The threaded coms didn't agree with GCC. Suprised, and looks like GCC bug.

This commit is contained in:
paboyle 2016-04-29 16:49:18 -07:00
parent c79ea0dcef
commit 1e554350ac
2 changed files with 8 additions and 4 deletions

View File

@ -594,8 +594,11 @@ PARALLEL_FOR_LOOP
template<class compressor> template<class compressor>
void HaloExchange(const Lattice<vobj> &source,compressor &compress) void HaloExchange(const Lattice<vobj> &source,compressor &compress)
{ {
auto thr = HaloExchangeBegin(source,compress); Mergers.resize(0);
HaloExchangeComplete(thr); Packets.resize(0);
HaloGather(source,compress);
Communicate();
CommsMerge();
} }
void HaloExchangeComplete(std::thread &thr) void HaloExchangeComplete(std::thread &thr)

View File

@ -359,8 +359,9 @@ void WilsonFermion5D<Impl>::DhopInternalCommsThenCompute(StencilImpl & st, Lebes
int LLs = in._grid->_rdimensions[0]; int LLs = in._grid->_rdimensions[0];
commtime -=usecond(); commtime -=usecond();
auto handle = st.HaloExchangeBegin(in,compressor); // auto handle = st.HaloExchangeBegin(in,compressor);
st.HaloExchangeComplete(handle); // st.HaloExchangeComplete(handle);
st.HaloExchange(in,compressor);
commtime +=usecond(); commtime +=usecond();
jointime -=usecond(); jointime -=usecond();