Skip to content

Commit

Permalink
Destroy cufft plan asap as suggested by Chao Wu
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Rit committed May 26, 2014
1 parent 0b8d4a7 commit bbba5cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/rtkCudaFFTRampImageFilter.cu
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ CUDA_fft_convolution(const int3 &inputDimension,
CUFFT_CHECK_ERROR(result);
result = cufftExecR2C(fftFwd, deviceProjection, deviceProjectionFFT);
CUFFT_CHECK_ERROR(result);
cufftDestroy(fftFwd);

// Thread Block Dimensions
int tBlock_x = 16;
Expand Down Expand Up @@ -134,7 +135,6 @@ CUDA_fft_convolution(const int3 &inputDimension,
CUFFT_CHECK_ERROR(result);

// Release memory
cufftDestroy(fftFwd);
cufftDestroy(fftInv);
cudaFree(deviceProjectionFFT);
}

0 comments on commit bbba5cc

Please sign in to comment.