mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-10 06:00:45 +01:00
Add Opt to the lambda capture to get it into the GPU
This commit is contained in:
parent
5df435319d
commit
a53d3ee19a
@ -332,13 +332,14 @@ void WilsonFermion<Impl>::DhopInternal(StencilImpl &st, LebesgueOrder &lo,
|
|||||||
Compressor compressor(dag);
|
Compressor compressor(dag);
|
||||||
st.HaloExchange(in, compressor);
|
st.HaloExchange(in, compressor);
|
||||||
|
|
||||||
|
int Opt = WilsonKernelsStatic::Opt;
|
||||||
if (dag == DaggerYes) {
|
if (dag == DaggerYes) {
|
||||||
thread_loop( (int sss = 0; sss < in.Grid()->oSites(); sss++) ,{
|
thread_loop( (int sss = 0; sss < in.Grid()->oSites(); sss++) ,{
|
||||||
Kernels::DhopSiteDag(st, lo, U, st.CommBuf(), sss, sss, 1, 1, in, out);
|
Kernels::DhopSiteDag(Opt,st, lo, U, st.CommBuf(), sss, sss, 1, 1, in, out);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
thread_loop( (int sss = 0; sss < in.Grid()->oSites(); sss++) ,{
|
thread_loop( (int sss = 0; sss < in.Grid()->oSites(); sss++) ,{
|
||||||
Kernels::DhopSite(st, lo, U, st.CommBuf(), sss, sss, 1, 1, in, out);
|
Kernels::DhopSite(Opt,st, lo, U, st.CommBuf(), sss, sss, 1, 1, in, out);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user