News for hackers. Stuff that matters.
Re:Parsing Series of Integers with SIMD (2018) by 29athrowaway on Friday May 29, 2020 @03:00AM (#23347020)
There's substantial difference between AVX and SSE. You can get a performance boost just by compiling with AVX2 or AVX512 support.
Re:Parsing Series of Integers with SIMD (2018) by rurban on Friday May 29, 2020 @08:41AM (#23349252)
AVX-512 not really, as it punishes you with downclocking. It's only available on the slow, insecure legacy CPU's from Intel, not on any modern CPU.
Re:Parsing Series of Integers with SIMD (2018) by gameswithgo on Friday May 29, 2020 @09:21AM (#23349647)
AVX/AVX2 also cause downclocking, to various degrees depending on which instructions you use, and which CPU. Some older CPUs will downclock the entire CPU if even 1 core is doing AVX instructions, newer ones downclock just the core.

In general, when AVX-512 is used in any sensible way, the performance gain from it is rather large. It isn't just twice as wide as 256bit AVX, it also is much more flexible, allowing more efficient vectorization of many algorithms. You often get more than a 2x speedup, despite the increased downclocking.

And AVX-512 is present on the newest intel cpus.

Hopefully AMD will introduce it with the next generation, since their downclocking method is superior in some ways. (you could use AVX-512 with less care to be sure you are doing enough AVX-512 work at a time, but benchmarking is harder since clock speeds vary in real time depending on heat and other factors)

Re:Parsing Series of Integers with SIMD (2018) by qubex on Friday May 29, 2020 @09:32AM (#23349774)
> It’s only available on the slow, insecure legacy CPU’s from Intel, not on any modern CPU.

Am I to take it that it is your opinion that any x86 CPU not manufactured by AMD is essentially dangerous and worthless?

Re:Parsing Series of Integers with SIMD (2018) by rurban on Saturday May 30, 2020 @01:14AM (#23358656)
High security risk esp. Why bother with AVX-512? It's not portable, and has questionable advantages.

Only AVX-512 downclocking is significant, 256 and 128bit not at all.

Re:Parsing Series of Integers with SIMD (2018) by saagarjha on Friday May 29, 2020 @03:46AM (#23347318)
Be careful with AVX-512, especially if you are driving it on multiple cores.
Re:Parsing Series of Integers with SIMD (2018) by gameswithgo on Friday May 29, 2020 @07:47AM (#23348819)
you can get one by compiling with sse support too.
Re:Parsing Series of Integers with SIMD (2018) by 29athrowaway on Friday May 29, 2020 @05:50PM (#23355965)