From b10e1b7bc8bec809f874e9e48a3ccc7b2619c9d1 Mon Sep 17 00:00:00 2001 From: Niccolo Forzano Date: Wed, 18 Jan 2023 18:04:47 +0000 Subject: [PATCH] Fixed files giving zero force computation on GPU, issue #8 --- Grid/qcd/utils/SUnAdjoint.h | 3 +-- Grid/qcd/utils/SUnTwoIndex.h | 3 +-- Grid/qcd/utils/Sp2nTwoIndex.h | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Grid/qcd/utils/SUnAdjoint.h b/Grid/qcd/utils/SUnAdjoint.h index 18d6b875..c03036ef 100644 --- a/Grid/qcd/utils/SUnAdjoint.h +++ b/Grid/qcd/utils/SUnAdjoint.h @@ -133,8 +133,7 @@ public: for (int a = 0; a < Dimension; a++) { generator(a, iTa); - LatticeComplex tmp = real(trace(iTa * in)) * coefficient; - pokeColour(h_out, tmp, a); + pokeColour(h_out, real(trace(iTa * in)) * coefficient, a); } } diff --git a/Grid/qcd/utils/SUnTwoIndex.h b/Grid/qcd/utils/SUnTwoIndex.h index cd440c26..50ddf5c1 100644 --- a/Grid/qcd/utils/SUnTwoIndex.h +++ b/Grid/qcd/utils/SUnTwoIndex.h @@ -224,8 +224,7 @@ public: // 2/(Nc +/- 2) for the normalization of the trace in the two index rep for (int a = 0; a < ncolour * ncolour - 1; a++) { generator(a, i2indTa); - auto tmp = real(trace(i2indTa * in)) * coefficient; - pokeColour(h_out, tmp, a); + pokeColour(h_out, real(trace(i2indTa * in)) * coefficient, a); } } diff --git a/Grid/qcd/utils/Sp2nTwoIndex.h b/Grid/qcd/utils/Sp2nTwoIndex.h index 60739551..474c7794 100644 --- a/Grid/qcd/utils/Sp2nTwoIndex.h +++ b/Grid/qcd/utils/Sp2nTwoIndex.h @@ -273,8 +273,7 @@ public: // 2/(Nc +/- 2) for the normalization of the trace in the two index rep for (int a = 0; a < NumGenerators; a++) { generator(a, i2indTa); - auto tmp = real(trace(i2indTa * in)) * coefficient; - pokeColour(h_out, tmp, a); + pokeColour(h_out, real(trace(i2indTa * in)) * coefficient, a); } }