diff --git a/lib/cshift/Cshift_common.h b/lib/cshift/Cshift_common.h index e2fa0481..7dc081ca 100644 --- a/lib/cshift/Cshift_common.h +++ b/lib/cshift/Cshift_common.h @@ -139,69 +139,6 @@ PARALLEL_NESTED_LOOP2 } } -/////////////////////////////////////////////////////////////////// -// Gather for when there *is* need to SIMD split with compression -/////////////////////////////////////////////////////////////////// -template double -Gather_plane_exchange(const Lattice &rhs, - std::vector pointers,int dimension,int plane,int cbmask,compressor &compress,int type) -{ - int rd = rhs._grid->_rdimensions[dimension]; - double t1,t2; - if ( !rhs._grid->CheckerBoarded(dimension) ) { - cbmask = 0x3; - } - - int so = plane*rhs._grid->_ostride[dimension]; // base offset for start of plane - - int e1=rhs._grid->_slice_nblock[dimension]; - int e2=rhs._grid->_slice_block[dimension]; - int n1=rhs._grid->_slice_stride[dimension]; - - // Need to switch to a table loop - std::vector > table; - - if ( cbmask ==0x3){ - for(int n=0;n (offset,o+b)); - } - } - } else { - // Case of SIMD split AND checker dim cannot currently be hit, except in - // Test_cshift_red_black code. - for(int n=0;nCheckerBoardFromOindex(o+b); - int offset = b+n*e2; - - if ( ocb & cbmask ) { - table.push_back(std::pair (offset,o+b)); - } - } - } - } - - assert( (table.size()&0x1)==0); - t1=usecond(); -PARALLEL_FOR_LOOP - for(int j=0;j