修复bug
parent
5cd3729fdf
commit
6c46507ae8
|
@ -16,7 +16,7 @@
|
|||
|
||||
//#define __PRFDEBUG__
|
||||
|
||||
#define __TBPIMAGEDEBUG__
|
||||
//#define __TBPIMAGEDEBUG__
|
||||
|
||||
//#include <mkl.h>
|
||||
#include <complex>
|
||||
|
|
|
@ -399,7 +399,6 @@ __global__ void CUDA_CombinationEchoAmpAndPhase(float* R,
|
|||
cuComplex echotemp = make_cuComplex(echophiexp.x*amp, echophiexp.y*amp);
|
||||
echo[idx] = echotemp;
|
||||
FreqID[idx] = timeID;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -404,8 +404,8 @@ void TBPImageGPUAlg(std::shared_ptr<float> antPx, std::shared_ptr<float> antPy,
|
|||
float* h_echoAmp_abs = (float*)mallocCUDAHost(sizeof(float) * prfcount * freqcount);
|
||||
|
||||
for (long freqi = 0; freqi < prfcount * freqcount; freqi++) {
|
||||
h_echoAmp_real[freqi] = d_echoArr[freqi].x;
|
||||
h_echoAmp_imag[freqi] = d_echoArr[freqi].y;
|
||||
h_echoAmp_real[freqi] = h_echoArr[freqi].x;
|
||||
h_echoAmp_imag[freqi] = h_echoArr[freqi].y;
|
||||
h_echoAmp_abs[freqi] = 20 * std::log10(std::abs(std::complex<double>(h_echoAmp_real[freqi], h_echoAmp_imag[freqi])));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue