cannam@95: cannam@95: cannam@95: Planner Flags - FFTW 3.3.3 cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: cannam@95: cannam@95:
cannam@95: cannam@95:

cannam@95: Next: , cannam@95: Previous: Complex DFTs, cannam@95: Up: Basic Interface cannam@95:


cannam@95:
cannam@95: cannam@95:

4.3.2 Planner Flags

cannam@95: cannam@95:

All of the planner routines in FFTW accept an integer flags cannam@95: argument, which is a bitwise OR (‘|’) of zero or more of the flag cannam@95: constants defined below. These flags control the rigor (and time) of cannam@95: the planning process, and can also impose (or lift) restrictions on the cannam@95: type of transform algorithm that is employed. cannam@95: cannam@95:

Important: the planner overwrites the input array during cannam@95: planning unless a saved plan (see Wisdom) is available for that cannam@95: problem, so you should initialize your input data after creating the cannam@95: plan. The only exceptions to this are the FFTW_ESTIMATE and cannam@95: FFTW_WISDOM_ONLY flags, as mentioned below. cannam@95: cannam@95:

In all cases, if wisdom is available for the given problem that was cannam@95: created with equal-or-greater planning rigor, then the more rigorous cannam@95: wisdom is used. For example, in FFTW_ESTIMATE mode any available cannam@95: wisdom is used, whereas in FFTW_PATIENT mode only wisdom created cannam@95: in patient or exhaustive mode can be used. See Words of Wisdom-Saving Plans. cannam@95: cannam@95:

Planning-rigor flags
cannam@95: cannam@95: cannam@95: cannam@95:
Algorithm-restriction flags
cannam@95: cannam@95: cannam@95: cannam@95:
Limiting planning time
cannam@95: cannam@95:
     extern void fftw_set_timelimit(double seconds);
cannam@95: 
cannam@95:

cannam@95: This function instructs FFTW to spend at most seconds seconds cannam@95: (approximately) in the planner. If seconds == cannam@95: FFTW_NO_TIMELIMIT (the default value, which is negative), then cannam@95: planning time is unbounded. Otherwise, FFTW plans with a cannam@95: progressively wider range of algorithms until the the given time limit cannam@95: is reached or the given range of algorithms is explored, returning the cannam@95: best available plan. cannam@95: cannam@95: cannam@95:

For example, specifying FFTW_PATIENT first plans in cannam@95: FFTW_ESTIMATE mode, then in FFTW_MEASURE mode, then cannam@95: finally (time permitting) in FFTW_PATIENT. If cannam@95: FFTW_EXHAUSTIVE is specified instead, the planner will further cannam@95: progress to FFTW_EXHAUSTIVE mode. cannam@95: cannam@95:

Note that the seconds argument specifies only a rough limit; in cannam@95: practice, the planner may use somewhat more time if the time limit is cannam@95: reached when the planner is in the middle of an operation that cannot cannam@95: be interrupted. At the very least, the planner will complete planning cannam@95: in FFTW_ESTIMATE mode (which is thus equivalent to a time limit cannam@95: of 0). cannam@95: cannam@95: cannam@95: cannam@95: