Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Intel Community
- Software
- Software Development SDKs and Libraries
- Intel® oneAPI Math Kernel Library
- Basic Code of Using MKL FFT on MIC

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Cristian_Vasile_A_

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

12-11-2014
04:06 AM

30 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

Link Copied

2 Replies

Gennady_F_Intel

Moderator

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

12-12-2014
12:29 AM

30 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

Cristian_Vasile_A_

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

12-12-2014
06:34 AM

30 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.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

For more complete information about compiler optimizations, see our Optimization Notice.