Do you think if statement as expression would be nice to have in D?
Bruce Carneal
bcarneal at gmail.com
Tue Jun 7 09:23:32 UTC 2022
On Tuesday, 7 June 2022 at 07:05:04 UTC, Walter Bright wrote:
> dmd doesn't do autovectorization.
>
> However, you can write vector code using vector types if you
> wish.
vector types are a great feature. That said, for readability I'm
migrating my __vector code base to autovectorization for the
CPU-only deployments and autovec+SIMT/dcompute for the rest.
Fortunately the recent autovectorizer code performance equals or
exceeds the "manual" code in many instances (more aggressive
unrolling and better/finer-grain handling of intermediate
lengths). OTOH, if perf drops,and SIMT is not available,
__vector it is!
More information about the Digitalmars-d
mailing list