Allowing the library to overwrite your input data in case of out-of-place transforms may be an appropriate alternative to using DFTI_WORKSPACE to reduce the memory footprint of your application. Intel® oneAPI Math Kernel Library (oneMKL) enables you to communicate whether this is allowed via the configuration parameter DFTI_DESTROY_INPUT, with the following values:
DFTI_AVOID |
The default. Instructs the library to leave the input data unchanged. |
DFTI_ALLOW |
Permits the input data to be overwritten. |