3 ms·
"Auto-vectorization is hard. Very hard. " This varies very heavily depending on the programming language :) C/C++ is not a language that easily enables one to
by DannyBee 9y ago
"Auto-vectorization is hard. Very hard. "
This varies very heavily depending on the programming language :)
C/C++ is not a language that easily enables one to guarantee things about aliasing or loop dependence.
- flamedoge 9y agobut you can write it in a way that's conducive to better codegen, at the cost of developer sanity.
- vanderZwan 9y agoOr you can design a language that is built all around it. Halide is pretty interesting, basically being a non-Turing complete DSL that lets you separate algorithm from scheduling: http://halide-lang.org/ http://halide-lang.org/ Something like that could perhaps also be useful for auto-vectorization.