From ed10e822ec5d850c53aad56e09ba8d625750ff62 Mon Sep 17 00:00:00 2001 From: kradchen Date: Thu, 27 Mar 2025 09:06:13 +0800 Subject: [PATCH] feat: fit to new cuda version --- .../detection/detection.cu | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/transmissionReconstruction/detection/detection.cu b/src/transmissionReconstruction/detection/detection.cu index 571c4db..9199b66 100644 --- a/src/transmissionReconstruction/detection/detection.cu +++ b/src/transmissionReconstruction/detection/detection.cu @@ -1,5 +1,6 @@ #include "CudaMatrix.h" #include "detection.cuh" +#include "float.h" #include #include #include @@ -288,16 +289,7 @@ Recon::DetectResultC Recon::detectTofAndAtt( auto ceilLog2 = nextpow2(2 * m - 1); auto m2 = pow(2, ceilLog2); { - CudaMatrix c_1_2; - { - CudaMatrix c_1_1; - { - auto x = fft(_AscanBlock, m2); - auto y = conj(fft(_AscanRefBlock, m2)); - c_1_1 = x * y; - } - c_1_2 = ifft(c_1_1); - } + CudaMatrix c_1_2 = ifft(conj(fft(_AscanRefBlock, m2))*fft(_AscanBlock, m2)); c1 = real(c_1_2); } c = zerosCuda(mxl + mxl + 1, c1.getDimSize(1));