top | item 46795833

(no title)

ivanpribec | 1 month ago

I can see the subtle distinction you make. The flang notes on array composition provide a good introduction to the way array expressions (https://flang.llvm.org/docs/ArrayComposition.html) are treated.

But in practice it looks like the elemental function must be in the same translation unit for vectorization to occur with compilers popular today. Explicit options like !$omp declare simd are a different matter (and have different pitfalls).

discuss

order

ivanpribec|1 month ago

*same translation unit as the call site