From 27b4fbf3f02cf7911208c06357440cb506f9776b Mon Sep 17 00:00:00 2001 From: Christoph Lehner Date: Mon, 3 Aug 2020 07:57:33 -0400 Subject: [PATCH] assert for forbidden code path and fix check for faster CPU codepath in basisRotate --- Grid/lattice/Lattice_ET.h | 1 + Grid/lattice/Lattice_basis.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Grid/lattice/Lattice_ET.h b/Grid/lattice/Lattice_ET.h index 91b456d9..4407be04 100644 --- a/Grid/lattice/Lattice_ET.h +++ b/Grid/lattice/Lattice_ET.h @@ -100,6 +100,7 @@ const lobj & eval(const uint64_t ss, const LatticeView &arg) template accelerator_inline const lobj & eval(const uint64_t ss, const Lattice &arg) { + assert(0); auto view = arg.View(AcceleratorRead); return view[ss]; } diff --git a/Grid/lattice/Lattice_basis.h b/Grid/lattice/Lattice_basis.h index b930e018..af9d7280 100644 --- a/Grid/lattice/Lattice_basis.h +++ b/Grid/lattice/Lattice_basis.h @@ -62,7 +62,7 @@ void basisRotate(VField &basis,Matrix& Qt,int j0, int j1, int k0,int k1,int Nm) basis_v.push_back(basis[k].View(AcceleratorWrite)); } -#ifdef GRID_OMP +#if ( (!defined(GRID_SYCL)) && (!defined(GRID_CUDA)) && (!defined(GRID_HIP)) ) int max_threads = thread_max(); Vector < vobj > Bt(Nm * max_threads); thread_region