On Friday, 3 November 2017 at 09:28:37 UTC, Daniel Kozak wrote:
How should I compile my program to enable array vectorization?

Array operations refers to https://dlang.org/spec/arrays.html#array-operations.

I have tried dmd -march=native, -march=avx2 as changlog suggest

It's -mcpu= not -march= for dmd, my bad.
Unfortunate that dmd uses different switches than gcc.
If you're compiling for 64-bit, you'll get SSE2 by default.


Reply via email to