15 ms·
Highway – Efficient and performance-portable SIMD
- touisteur 5y agoI'm sorry, it's been a long time some code made me feel so dumb. I mean I thought I had a good grasp on c++ and vectorized code and I can't find a simple example on how to use it properly. The benchmark example made me feel even more dumb. Can someone help pointing what this code is supposed to do (yes I read the landing page and it doesn't help me much...), are there alternative libraries that do similar things and are there 'simpler' examples somewhere?
- nn3 5y agoNo offense, but while it was a bit long, all your questions had answers in the README.md. So if you read it, you speed read it too much.
- janwas 5y ago:) The benchmark does contain some boilerplate and extra code for measurements but a simple example is at https://github.com/google/highway/blob/master/hwy/examples/benchmark.cc#L114 https://github.com/google/highway/blob/master/hwy/examples/b.... Or how about https://github.com/google/highway/blob/master/hwy/examples/skeleton.cc#L40 https://github.com/google/highway/blob/master/hwy/examples/s... for computing floor(log2(i))?
- touisteur 5y agoRight it gives a taste, indeed.
- touisteur 5y agoYou're right. I went again and it started clicking when I saw references to other SIMD libraries. Thanks and sorry.
- janwas 5y agoThanks for posting :) Author here, happy to discuss.