From a53d3ee19a7c3ebe9dff6b5a79666a025d87d290 Mon Sep 17 00:00:00 2001 From: paboyle Date: Fri, 2 Feb 2018 11:28:39 +0000 Subject: [PATCH] Add Opt to the lambda capture to get it into the GPU --- lib/qcd/action/fermion/WilsonFermion.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/qcd/action/fermion/WilsonFermion.cc b/lib/qcd/action/fermion/WilsonFermion.cc index 4d7d340c..33e45a7e 100644 --- a/lib/qcd/action/fermion/WilsonFermion.cc +++ b/lib/qcd/action/fermion/WilsonFermion.cc @@ -332,13 +332,14 @@ void WilsonFermion::DhopInternal(StencilImpl &st, LebesgueOrder &lo, Compressor compressor(dag); st.HaloExchange(in, compressor); + int Opt = WilsonKernelsStatic::Opt; if (dag == DaggerYes) { 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 { 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); }); } };