Avoiding array temporaries in a call to MKL DFT subroutines

Avoiding array temporaries in a call to MKL DFT subroutines

I want to perform a series of 1D FFT operations on the columns of an array A. These 1D FFT operations need not be performed at the same time. In other words, at some point in the execution of my code, a 1D FFT is done on, say, A(:,12), then later on, another one on A(:,40) etc.
How can I prevent the creation of an array temporary in these FFT calls? A is an allocatable array, and therefore A(:,1) elements are contiguous. Passing A(1,12) (address of first element) does not work either.

Thanks,

Olivier

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hi Olivier,

passing A(:,12) should work for 12th column, without creating a temporary.

Thanks,
Dima.

Login to leave a comment.