Community
cancel
Showing results for 
Search instead for 
Did you mean: 
36 Views

Basic Code of Using MKL FFT on MIC

 

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*rho*rho;
}
//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

 

0 Kudos
2 Replies
Gennady_F_Intel
Moderator
36 Views

Cristian,

The best way to to learn how to use MKL for Xeon Phi - to look at the examples which were prepared special for such sort of questions.

in particular for FFT - you can find such example into "<mkl_root>\examples\mic_offload\dftc\" 

--Gennady

36 Views

Gennady Fedorov (Intel) wrote:

Cristian,

The best way to to learn how to use MKL for Xeon Phi - to look at the examples which were prepared special for such sort of questions.

in particular for FFT - you can find such example into "<mkl_root>\examples\mic_offload\dftc\" 

--Gennady

 

Hello,

 

Thank you for your reply. I will check the examples on our cluster.

Reply