1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-09-20 01:05:38 +01:00

Fix to GPU compile attempt

This commit is contained in:
Peter Boyle 2022-11-15 17:25:58 -05:00
parent fe6e8f5ac6
commit 6209120de9
2 changed files with 3 additions and 1 deletions

View File

@ -73,7 +73,7 @@ public:
auto vp0= &mm.vpointers[0][0];
auto vp1= &mm.vpointers[1][0];
auto type= mm.type;
accelerator_forNB(o,mm.buffer_size/2,vobj::Nsimd(),{
accelerator_forNB(o,mm.buffer_size/2,Merger::Nsimd(),{
decompress.Exchange(mp[2*o],mp[2*o+1],vp0[o],vp1[o],type);
});
}

View File

@ -245,6 +245,7 @@ public:
Integer rbytes;
};
struct Merge {
static constexpr int Nsimd = vobj::Nsimd();
cobj * mpointer;
Vector<scalar_object *> rpointers;
Vector<cobj *> vpointers;
@ -254,6 +255,7 @@ public:
Coordinate dims;
};
struct Decompress {
static constexpr int Nsimd = vobj::Nsimd();
cobj * kernel_p;
cobj * mpi_p;
Integer buffer_size;