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 ////////////////////////////////////////////////