mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
Comm vector for shmem
This commit is contained in:
parent
cbcfea466f
commit
c7cccaaa69
@ -71,7 +71,7 @@
|
|||||||
namespace Grid {
|
namespace Grid {
|
||||||
|
|
||||||
template<class vobj,class cobj,class compressor> void
|
template<class vobj,class cobj,class compressor> void
|
||||||
Gather_plane_simple_table_compute (const Lattice<vobj> &rhs,std::vector<cobj,alignedAllocator<cobj> > &buffer,int dimension,int plane,int cbmask,compressor &compress, int off,std::vector<std::pair<int,int> >& table)
|
Gather_plane_simple_table_compute (const Lattice<vobj> &rhs,commVector<cobj> &buffer,int dimension,int plane,int cbmask,compressor &compress, int off,std::vector<std::pair<int,int> >& table)
|
||||||
{
|
{
|
||||||
table.resize(0);
|
table.resize(0);
|
||||||
int rd = rhs._grid->_rdimensions[dimension];
|
int rd = rhs._grid->_rdimensions[dimension];
|
||||||
@ -109,7 +109,7 @@ Gather_plane_simple_table_compute (const Lattice<vobj> &rhs,std::vector<cobj,ali
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<class vobj,class cobj,class compressor> void
|
template<class vobj,class cobj,class compressor> void
|
||||||
Gather_plane_simple_table (std::vector<std::pair<int,int> >& table,const Lattice<vobj> &rhs,std::vector<cobj,alignedAllocator<cobj> > &buffer,
|
Gather_plane_simple_table (std::vector<std::pair<int,int> >& table,const Lattice<vobj> &rhs,commVector<cobj> &buffer,
|
||||||
compressor &compress, int off,int so)
|
compressor &compress, int off,int so)
|
||||||
{
|
{
|
||||||
PARALLEL_FOR_LOOP
|
PARALLEL_FOR_LOOP
|
||||||
@ -119,7 +119,7 @@ PARALLEL_FOR_LOOP
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<class vobj,class cobj,class compressor> void
|
template<class vobj,class cobj,class compressor> void
|
||||||
Gather_plane_simple_stencil (const Lattice<vobj> &rhs,std::vector<cobj,alignedAllocator<cobj> > &buffer,int dimension,int plane,int cbmask,compressor &compress, int off,
|
Gather_plane_simple_stencil (const Lattice<vobj> &rhs,commVector<cobj> &buffer,int dimension,int plane,int cbmask,compressor &compress, int off,
|
||||||
double &t_table ,double & t_data )
|
double &t_table ,double & t_data )
|
||||||
{
|
{
|
||||||
std::vector<std::pair<int,int> > table;
|
std::vector<std::pair<int,int> > table;
|
||||||
@ -347,10 +347,10 @@ Gather_plane_simple_stencil (const Lattice<vobj> &rhs,std::vector<cobj,alignedAl
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Comms buffers
|
// Comms buffers
|
||||||
std::vector<Vector<scalar_object> > u_simd_send_buf;
|
std::vector<commVector<scalar_object> > u_simd_send_buf;
|
||||||
std::vector<Vector<scalar_object> > u_simd_recv_buf;
|
std::vector<commVector<scalar_object> > u_simd_recv_buf;
|
||||||
Vector<cobj> u_send_buf;
|
commVector<cobj> u_send_buf;
|
||||||
Vector<cobj> comm_buf;
|
commVector<cobj> comm_buf;
|
||||||
int u_comm_offset;
|
int u_comm_offset;
|
||||||
int _unified_buffer_size;
|
int _unified_buffer_size;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user