mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-25 13:15:55 +01:00
Inner product is not working on GPU. Why?
This commit is contained in:
parent
3c717c47ef
commit
204a090497
@ -41,7 +41,7 @@ template<class vobj> inline RealD norm2(const Lattice<vobj> &arg){
|
|||||||
return real(nrm);
|
return real(nrm);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef GRID_NVCC
|
#if 0
|
||||||
//#warning "ThrustReduce compiled"
|
//#warning "ThrustReduce compiled"
|
||||||
//#include <thrust/execution_policy.h>
|
//#include <thrust/execution_policy.h>
|
||||||
template<class vobj>
|
template<class vobj>
|
||||||
@ -74,8 +74,8 @@ inline ComplexD innerProduct(const Lattice<vobj> &left,const Lattice<vobj> &righ
|
|||||||
|
|
||||||
auto left_v = left.View();
|
auto left_v = left.View();
|
||||||
auto right_v=right.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;
|
typedef decltype(TensorRemove(innerProduct(left_v[0],right_v[0]))) inner_t;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user