Software Archive
Read-only legacy content
17061 Discussions

Is it possible to use SIMD instructions in offload mode?

Liu_N_
Beginner
688 Views

Hi there:

I tried to vectorized a program with SIMD instructions. The intrinsics such as "_mm512_add_ps()" can only be used when the program  is compiled with  the option -mmic, which lead to that the program can run only on MIC.

But now we need to use MIC work with CPU, the best way is to offload to MIC. How can I use the SIMD intructions in the offload mode?

Thanks.

0 Kudos
4 Replies
Kevin_D_Intel
Employee
688 Views

Have a look at sampleC06.c (under /opt/intel/composer_xe_2013/Samples/en_US/C++/mic_samples/intro_sampleC) and how to use the __MIC__ define.

0 Kudos
Liu_N_
Beginner
688 Views

Got it, Thank you very much. I came to know about how to use this macro.

0 Kudos
Liu_N_
Beginner
688 Views

Kevin Davis (Intel) wrote:

Have a look at sampleC06.c (under /opt/intel/composer_xe_2013/Samples/en_US/C++/mic_samples/intro_sampleC) and how to use the __MIC__ define.

Got it. Thank you. I came to know about how to use this macro.

0 Kudos
Kevin_D_Intel
Employee
688 Views

You're welcome. Glad to hear that.

0 Kudos
Reply