diff --git a/Grid/stencil/SimpleCompressor.h b/Grid/stencil/SimpleCompressor.h index eda6d9e7..ffbe752c 100644 --- a/Grid/stencil/SimpleCompressor.h +++ b/Grid/stencil/SimpleCompressor.h @@ -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); }); } diff --git a/Grid/stencil/Stencil.h b/Grid/stencil/Stencil.h index dd8b646e..1e0b5028 100644 --- a/Grid/stencil/Stencil.h +++ b/Grid/stencil/Stencil.h @@ -245,6 +245,7 @@ public: Integer rbytes; }; struct Merge { + static constexpr int Nsimd = vobj::Nsimd(); cobj * mpointer; Vector rpointers; Vector 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;