From 0fc662bb2455a4637de3cbf78cb07f7657cdf28f Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Tue, 14 Sep 2021 05:00:44 +0100 Subject: [PATCH] Dirac cuda 11.4 happy ; force host for functions accessing mult table ET runs these on host BEFORE lodging result in AST for kernel --- Grid/qcd/spin/Dirac.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Grid/qcd/spin/Dirac.h b/Grid/qcd/spin/Dirac.h index d03e0939..2f2a9732 100644 --- a/Grid/qcd/spin/Dirac.h +++ b/Grid/qcd/spin/Dirac.h @@ -40,7 +40,7 @@ See the full license in the file "LICENSE" in the top level distribution directo NAMESPACE_BEGIN(Grid); // Dirac algebra adjoint operator (not in to overload other adj) -accelerator_inline Gamma adj(const Gamma &g) +inline Gamma adj(const Gamma &g) { return Gamma (Gamma::adj[g.g]); } @@ -48,7 +48,7 @@ accelerator_inline Gamma adj(const Gamma &g) // Dirac algebra mutliplication operator -accelerator_inline Gamma operator*(const Gamma &g1, const Gamma &g2) +inline Gamma operator*(const Gamma &g1, const Gamma &g2) { return Gamma (Gamma::mul[g1.g][g2.g]); }