Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Alexandre_C_
Beginner
144 Views

Array notation replacement?

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

Reply