From dd3ebc2ce4478d7faf9b0bfd5dd9f89e185d20d6 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Wed, 29 Apr 2020 08:43:12 -0400 Subject: [PATCH] Slow compile on NVCC switch off conserved current --- .../fermion/implementation/CayleyFermion5DImplementation.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Grid/qcd/action/fermion/implementation/CayleyFermion5DImplementation.h b/Grid/qcd/action/fermion/implementation/CayleyFermion5DImplementation.h index 9c6cdbf3..c80d2425 100644 --- a/Grid/qcd/action/fermion/implementation/CayleyFermion5DImplementation.h +++ b/Grid/qcd/action/fermion/implementation/CayleyFermion5DImplementation.h @@ -644,6 +644,7 @@ void CayleyFermion5D::ContractConservedCurrent( PropagatorField &q_in_1, Current curr_type, unsigned int mu) { +#ifndef GRID_NVCC Gamma::Algebra Gmu [] = { Gamma::Algebra::GammaX, Gamma::Algebra::GammaY, @@ -762,6 +763,7 @@ void CayleyFermion5D::ContractConservedCurrent( PropagatorField &q_in_1, else q_out += C; } +#endif } template @@ -826,7 +828,7 @@ void CayleyFermion5D::SeqConservedCurrent(PropagatorField &q_in, } #endif -#if 1 +#ifndef GRID_NVCC //////////////////////////////////////////////// // GENERAL CAYLEY CASE ////////////////////////////////////////////////