Quantcast
Channel: Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
Viewing all articles
Browse latest Browse all 2652

Basic Code of Using MKL FFT on MIC

$
0
0
 

Hello,

In our local cluster we have a bunch of MIC's, which are (almost) never esed. I would like to give it the try, but I have no experience iwth the MKL library or MIC. My programs are very simple and they are based on FFT:

I have an iterative process in which the smae update procedure is applied to the previous data:

// initialize data rho[lx]

for(t=0;t<tmax;t++)
{

// first step in real space is local
for(i=0;i<lx;i++)
{
nt(i)=rho[i]*rho[i]*rho[i];
}
//forward FFT rho->rhok
//forward FFT nt-> ntk

//update in k space
for(i=0;i<lx/2+1;i++)
{
newrhok(i)=filter1(i)*rhok(i)+filter2(i)*ntk(i); // complex multiplication
}
//inverse FFT newrhok->newrho

So my problem is how to ues MKL FFT's on MIC's and how minimize the transfers between cpu and MIC.

I hope this is the right forum and many thanks in advance

Cristian

 


Viewing all articles
Browse latest Browse all 2652

Trending Articles



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