mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
assert for forbidden code path and fix check for faster CPU codepath in basisRotate
This commit is contained in:
parent
968a90633a
commit
27b4fbf3f0
@ -100,6 +100,7 @@ const lobj & eval(const uint64_t ss, const LatticeView<lobj> &arg)
|
|||||||
template <class lobj> accelerator_inline
|
template <class lobj> accelerator_inline
|
||||||
const lobj & eval(const uint64_t ss, const Lattice<lobj> &arg)
|
const lobj & eval(const uint64_t ss, const Lattice<lobj> &arg)
|
||||||
{
|
{
|
||||||
|
assert(0);
|
||||||
auto view = arg.View(AcceleratorRead);
|
auto view = arg.View(AcceleratorRead);
|
||||||
return view[ss];
|
return view[ss];
|
||||||
}
|
}
|
||||||
|
@ -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));
|
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();
|
int max_threads = thread_max();
|
||||||
Vector < vobj > Bt(Nm * max_threads);
|
Vector < vobj > Bt(Nm * max_threads);
|
||||||
thread_region
|
thread_region
|
||||||
|
Loading…
x
Reference in New Issue
Block a user