1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Inner product is not working on GPU. Why?

This commit is contained in:
Peter Boyle 2019-04-28 07:31:56 +01:00
parent 3c717c47ef
commit 204a090497

View File

@ -41,7 +41,7 @@ template<class vobj> inline RealD norm2(const Lattice<vobj> &arg){
return real(nrm);
}
#ifdef GRID_NVCC
#if 0
//#warning "ThrustReduce compiled"
//#include <thrust/execution_policy.h>
template<class vobj>
@ -74,8 +74,8 @@ inline ComplexD innerProduct(const Lattice<vobj> &left,const Lattice<vobj> &righ
auto left_v = left.View();
auto right_v=right.View();
#ifdef GRID_NVCC
//#if 0
#if 0
typedef decltype(TensorRemove(innerProduct(left_v[0],right_v[0]))) inner_t;