Tag: convolution

用valgrind检查fftw3

在我的程序的一个步骤中,我需要卷积图像。 为此,我使用fftw3提供的function。 当我在我的程序上运行valgrind ,我得到了这个堆栈跟踪。 我的函数叫做fftw3 ,它运行fftw3的fftw_plan_dft_r2c_2d两次(一次在图像上,一次在卷积内核上。为了使它更具可读性,我删除了所有地址和进程ID。 HEAP SUMMARY: in use at exit: 62,280 bytes in 683 blocks total heap usage: 178,271 allocs, 177,588 frees, 36,617,058 bytes allocated 3,304 (24 direct, 3,280 indirect) bytes in 1 blocks are definitely lost in loss record 129 of 131 at : malloc (vg_replace_malloc.c:291) by : fftw_malloc_plain (in ./prog) by […]