From a66973163f8128e54c561a9dc30bde3a6fa52eb4 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Thu, 11 Jul 2024 15:24:11 +0000 Subject: [PATCH] Device vector not UVM --- Grid/lattice/Lattice_reduction.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Grid/lattice/Lattice_reduction.h b/Grid/lattice/Lattice_reduction.h index 7b66c31d..6ce70232 100644 --- a/Grid/lattice/Lattice_reduction.h +++ b/Grid/lattice/Lattice_reduction.h @@ -373,7 +373,8 @@ axpby_norm_fast(Lattice &z,sobj a,sobj b,const Lattice &x,const Latt nrm = real(TensorRemove(sum(inner_tmp_v,sites))); #else typedef decltype(innerProduct(x_v[0],y_v[0])) inner_t; - Vector inner_tmp(sites); + deviceVector inner_tmp; + inner_tmp.resize(sites); auto inner_tmp_v = &inner_tmp[0]; accelerator_for( ss, sites, nsimd,{