From 4278caa030393528929945158d621d33bf8a408c Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Thu, 15 Aug 2019 01:32:03 +0100 Subject: [PATCH] Force a couple of things to compile on NVCC --- Hadrons/Modules/MNPR/FourQuark.hpp | 25 +++++-------------- ..._WilsonMixedRepresentationsFermionGauge.cc | 5 ++-- 2 files changed, 9 insertions(+), 21 deletions(-) diff --git a/Hadrons/Modules/MNPR/FourQuark.hpp b/Hadrons/Modules/MNPR/FourQuark.hpp index df8cbffe..3fb687ca 100644 --- a/Hadrons/Modules/MNPR/FourQuark.hpp +++ b/Hadrons/Modules/MNPR/FourQuark.hpp @@ -116,23 +116,6 @@ std::vector TFourQuark::getOutput(void) template void TFourQuark::tensorprod(LatticeSpinColourSpinColourMatrix &lret, LatticeSpinColourMatrix a, LatticeSpinColourMatrix b) { -#if 0 - parallel_for(auto site=lret.begin();site::tensorprod(LatticeSpinColourSpinColourMatrix &l auto lret_v = lret.View(); auto a_v = a.View(); auto b_v = b.View(); +#ifdef GRID_NVCC +#warning "NVCC problem: Removed impossibly slow compile of simple NPR host code in FourQuark.hpp" +#else thread_foreach( site,lret_v,{ vTComplex left; for(int si=0; si < Ns; ++si){ @@ -153,7 +139,7 @@ void TFourQuark::tensorprod(LatticeSpinColourSpinColourMatrix &l }} }} }); -#endif +#endif } @@ -171,6 +157,7 @@ void TFourQuark::setup(void) template void TFourQuark::execute(void) { +#ifndef GRID_NVCC /********************************************************************************* @@ -234,7 +221,6 @@ We have up to 256 of these including the offdiag (G1 != G2). Sin = Sin*exp(-Ci*pdotxin); //phase corrections Sout = Sout*exp(-Ci*pdotxout); - //Set up Gammas std::vector gammavector; for( int i=1; i TheRepresentations; @@ -133,7 +134,7 @@ int main(int argc, char **argv) { TheHMC.Run(); // no smearing Grid_finalize(); - +#endif } // main