Hi,
Below is a block of codes for using 2D FFT from MKL:
MKL_LONG flen1[2]={nffty,nfftx};
MKL_LONG status;
DFTI_DESCRIPTOR_HANDLE hand1;
status=DftiCreateDescriptor(&hand1,DFTI_SINGLE,DFTI_COMPLEX,2,flen1);
status=DftiCommitDescriptor(hand1);
status=DftiComputeForward(hand1,tmp);
tmp is a 2D complex array.
problems:
tmp in DftiComputeForward: if tmp is given by tmp[ ][ ] the compiling can go through and the block codes works well. If tmp is given by **tmp and alloc memory to it, the compiling can go through but executing is crushed at DftiComputeForward.
So, the problem is in/out parameter in DftiComputeForward has to be hard-coding 2D array and cannot be pointer type?
Any answer is welcomed. Thank you very much.