Quantcast
Channel: Intel® Many Integrated Core Architecture
Viewing all articles
Browse latest Browse all 1347

1D Real FFT Issue on MIC

$
0
0

I am compiling code included below into a native MIC application.  The executable is deployed via Windows COI API.  If I put a break point after the DftiComputeForward() call and display memory contents of x & y, I see that the input data has been clobbered by the call and y is unchanged (or has been overwritten with the identical values of 0).  I looked over the documentation and would expect MKL to use y as an output instead of performing FFT in place since DFTI_REAL has been specified as the forward domain in the DftiCreateDescriptor() call.

Is this a BUG or am I using the MKL API wrong.

Host OS: Windows 7

MKL version: 11.1.2.176 (w_mkl_11.1.2.176.exe)

Cheers,

Al

 

    float x[512];

    float y[512];

    MKL_LONG status;

    for(int_t i=0; i<64; i++) {

        x[i] = (float)i;

        y[i] = 0;

    }

    DFTI_DESCRIPTOR_HANDLE dscHnd;

    status = DftiCreateDescriptor(&dscHnd, DFTI_SINGLE, DFTI_REAL, 1, 8);

    if(status != 0) {

        goto _err;

    }

    status = DftiCommitDescriptor(dscHnd);

    if(status != 0) {

        goto _err;

    }

    status = DftiComputeForward(dscHnd, (float *)x, (float *)y);

    if(status != 0) {

        goto _err;

    }

    DftiFreeDescriptor(&dscHnd);


Viewing all articles
Browse latest Browse all 1347


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>