X-Git-Url: https://rtime.felk.cvut.cz/gitweb/hercules2020/kcf.git/blobdiff_plain/8e1d3c22cd75e0597761e92fe83d80b87ff520f4..2230424ce6be376f11647c7b90876cbe2a7f4087:/src/fft_cufft.cpp diff --git a/src/fft_cufft.cpp b/src/fft_cufft.cpp index e551eaa..963c8b7 100644 --- a/src/fft_cufft.cpp +++ b/src/fft_cufft.cpp @@ -100,13 +100,14 @@ void cuFFT::inverse(ComplexMat &complex_input, MatScales &real_result) Fft::inverse(complex_input, real_result); uint n_channels = complex_input.n_channels; - cufftComplex *in = reinterpret_cast(complex_input.get_p_data()); + cufftComplex *in = reinterpret_cast(complex_input.get_dev_data()); cufftReal *out = real_result.deviceMem(); float alpha = 1.0 / (m_width * m_height); if (n_channels == 1) cudaErrorCheck(cufftExecC2R(plan_i_1ch, in, out)); #ifdef BIG_BATCH + else cudaErrorCheck(cufftExecC2R(plan_i_all_scales, in, out)); #endif // TODO: Investigate whether this scalling is needed or not