Skip to content
Snippets Groups Projects

BUG : clean fftw threads only if fftw is used

Merged Cédric Traizet requested to merge quickfix_mellin_fftw into develop

Bug description : MR !304 (merged) fixed a bug with fftw, at the end of the Mellin test we need to clean fftw threads by calling fftw_cleanup_threads();.

But this is only true if fftw is actually used, i.e. if ITK was built using fftw (using cmake build option ITK_USE_FFTWF or ITK_USE_FFTWD) which is not mandatory for performing Fourier transforms with ITK, and the method fftw_cleanup_threads(); is not avalaible without fftw.

This means that, with fix !304 (merged), OTB does not compile if ITK was built without fftw. This second fix adds a test on ITK_USE_FFTWF and ITK_USE_FFTWD before calling fftw_cleanup_threads().

Edited by Cédric Traizet

Merge request reports

Approval is optional
Ready to merge by members who can write to the target branch.

Merge details

  • 1 commit and 1 merge commit will be added to develop.
  • Source branch will not be deleted.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading