MitchAlsup <user…@newsgrouper.org.invalid> schrieb:
> Thomas Koenig <tkoe…@netcologne.de> posted:
>
>> Stephen Fuld <sfu…@alumni.cmu.edu.invalid> schrieb:
>> > The third group, and one we really haven't discussed in this thread
>> > beyond Thomas' first mention is wide permutations. I wasn't familiar
>> > with the relevant capabilities in AVX512, so I had to do a little
>> > research. While My 66000 has a permute instruction, and perhaps if
>> > preceded by a Double instruction modifier can be wider, I don't see how
>> > it can compete with the 512 byte wide permutation in three cycles
>> > provided by AVX512, nor the capability to do byte wide permutes where
>> > the source isn't required to be a 8 bit boundary. So if these kinds of
>> > operations are used often, then SIMD may be a requirement.
>>
>> That is what i think, too.
>
> Many times the indexes of the loaded memory provide for the kind
> of permutation, so you don't need the PERM as an instruction; it
> is just something that the vVM loop-to-loop analyzer needs to
> figure out--once figured out {easy when constant} the LD-buffer
> is routed to FUs based on the permutation.
This will work for some cases, but not for _real_ high-performance
applications.
Take a high-speed JSON parser such as
https://gitlab.ethz.ch/extra_projects/fastjson or simdjson. The
shuffling, masking etc is not possible with VVM in its current
state - everything would have to travel through memory, with
its latencies, and that would kill performance. I also do
not see a way to do equivalent things with VVM.
This kind of code will probably never be emitted by
auto-vectorization, this is for people who write assembly or
compiler intrinsics specific to the particular architecture,
which is just glorified assembler where the compiler does the
register allocation.
Once the reduction problem is solved, I think VVM will be superior
for the vast majority of code, but some very important niches
remain.
--
This USENET posting was made without artificial intelligence,
artificial impertinence, artificial arrogance, artificial stupidity,
artificial flavorings or artificial colorants.