From 02d71df25ae921fa73410ddcc2ad49744c2e5187 Mon Sep 17 00:00:00 2001 From: Piotr Jarosik Date: Fri, 5 Nov 2021 11:26:37 +0100 Subject: [PATCH] Fixed temporary variable cleanup in iq 2 lri CUDA kernel reconstruction. --- api/python/arrus/utils/iq_raw_2_lri.cu | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/python/arrus/utils/iq_raw_2_lri.cu b/api/python/arrus/utils/iq_raw_2_lri.cu index 81e6c0573..4b5bcdc28 100644 --- a/api/python/arrus/utils/iq_raw_2_lri.cu +++ b/api/python/arrus/utils/iq_raw_2_lri.cu @@ -84,6 +84,8 @@ iqRaw2Lri(complex *iqLri, const complex *iqRaw, (xPix[x] - xElem[txApLstElem[iTx]])*cosf(txAngZX[iTx])) >= 0.f)) ? 1.f : 0.f; } pixWgh = 0.0f; + pix.real(0.0f); + pix.imag(0.0f); if (txApod != 0.0f) { for (int iRx = 0; iRx < nRx; iRx++) {