SIMD-specialized overloads of Phobos algorithms

9il ilyayaroshenko at gmail.com
Mon Jul 1 12:05:48 UTC 2019


On Friday, 28 June 2019 at 15:49:34 UTC, Per Nordlöw wrote:
> According to
>
> http://0x80.pl/notesen/2018-10-03-simd-index-of-min.html
>
> SIMD-tuning a Phobos function, such as,
>
>     std.algorithm.searching.minIndex
>
> for an `int[]`-haystack on AVX512f leads to a speedup of 15x.
>
> Should such specializations be added to Phobos or is such an 
> optimization only possible for LDC or GCC but not for DMD?

Specializations are welcome for mir-algorithm.

http://mir-algorithm.libmir.org/mir_algorithm_iteration.html


More information about the Digitalmars-d mailing list