Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Optimizing an integral calculation for KNCs vector processing unit

Anders_S_1
New Contributor III
608 Views

Hi,

I want to calculate an integral on a KNC core in Fortran  double precision by offload. The integrand is built up of intrinsic functions, which I will

vectorize by OpenMP SIMD instructions. Is there any nice code examples around that could assist me?

Best regards

Anders S

0 Kudos
2 Replies
Loc_N_Intel
Employee
608 Views

Hi Anders,

I saw Tim P posted the C code sample where he mixed OpenMP and intrinsics (SSE4) here https://software.intel.com/en-us/forums/intel-moderncode-for-parallel-architectures/topic/297545 . I hope it is useful for you to write Intel(R) Initial Many Core Instruction (Intel(R) IMCI). Thank you.

0 Kudos
TimP
Honored Contributor III
608 Views

The c++ and Fortran compilers optimize those cases well enough now that you may not wish to invest in knc intrinsic coding which will be discarded when avx512 CPU s arrive.  Compilers can take advantage of the 4 times wider lanes than you are restricted to with sse4.

0 Kudos
Reply