Software Archive
Read-only legacy content
17061 Discussions

Array notation replacement?

Alexandre_C_
Beginner
593 Views

I saw the article/guide to translate code from cilk plus to TBB or openMP. That's all fine, but the article ignores the concept of Array Notations.

Now, with the deprecation of Cilk Plus, I am wondering was is Intel's take on how we should translate code using array notations to code that doesn't use it. And of course, to keep the same performance as before.

Does simple 'for' loops around the data, coupled with some #pragmas, the preferred solution? Or should be try to go for AVX intrinsics?

0 Kudos
1 Reply
Hansang_B_Intel
Employee
593 Views

Yes, using "for" loops and some type of user hints (e.g., OpenMP simd construct) with an appropriate code generation option (e.g., for AVX, AVX2, AVX512) is a good starting point in my opinion.

0 Kudos
Reply