Unfortunately, due to the complexity and specialized nature of AVX-512, such optimizations are typically reserved for performance-critical applications and require expertise in low-level programming and processor microarchitecture.

  • @[email protected]
    link
    fedilink
    English
    19 minutes ago

    As someone who has done some hand coding of AVX-512, I appreciate their willingness to take this on. Getting the input vectors setup correctly for the instructions can be a hassle, especially when the input dataset is not an even multiple of 64.

  • @[email protected]
    link
    fedilink
    65
    edit-2
    3 hours ago

    Whomever wrote this article is just misleading everyone.

    First of all, they did this for other kinds of similar instruction sets before, so this is nothing special. Second of all, they measure the speedup compared to a basic implementation that doesn’t use any optimizations.

    They did the same in the past for AVX-2, which is 67x faster in the test where avx-512 got the 94x speed increase. So it’s not 94x faster now, it’s 1.4x faster than the previous iteration using the older AVX-2 instruction set. It’s barely twice as fast as the implementation using SSE3 (40x faster than the slow version), an instruction set from 20 years ago…

    So yeah, it’s awesome that they did the same awesome work for AVX-512, but the 94x boost is just plain bullshit… it’s really sad that great work then gets worded in such a misleading way to form clickbait, rather than getting a proper informative article…

    • @Finadil
      link
      125 hours ago

      Relevant section:

      Intel made waves when it disabled AVX-512 support at the firmware level on 12th-gen Core processors and later models, effectively removing the SIMD ISA from its consumer chips.

  • @[email protected]
    link
    fedilink
    4
    edit-2
    1 hour ago

    nice.

    can usually get a pretty good performance increase with hand writing asm where appropriate.

    don’t know if its a coincidence, but i’ve never seen someone who’s good at writing assembly say that its never useful.

    • @FooBarrington
      link
      21 hour ago

      Though you’d get the same speedup if you used SIMD intrinsics. This is just comparing non-SIMD to SIMD.

      • @[email protected]
        link
        fedilink
        1
        edit-2
        1 hour ago

        from the article it’s not clear what the performance boost is relative to intrinsics (its extremely unlikely to be anything close to 94x lol), its not even clear from the article if the avx2 implementation they benchmarked against was instrinsics or handwritten either. in some cases avx2 seems to slightly outperform avx-512 in their implementation

        there’s also so many different ways to break a problem down that i’m not sure this is an ideal showcase, at least without more information.

        to be fair to the presenters they may not be the ones making the specific flavour of hype that the article writers are.

          • @[email protected]
            link
            fedilink
            1
            edit-2
            28 minutes ago

            yes, as i said

            from the article it’s not clear what the performance boost is relative to intrinsics

            (they don’t make that comparison in the article)

            so its not clear exactly how handwritten asm compares to intrinsics in this specific comparison. we can’t assume their handwritten AVX-512 asm and instrinics AVX-512 will perform identically here, it may be better, or worse.

            also worth noting they’re discussing benchmarking of a specific function, so overall performance on executing a given set of commands may be quite different depending what can and can’t be unrolled and in which order for different dependencies.

    • @[email protected]
      link
      fedilink
      English
      33 hours ago

      To be fair, people who don’t find assembly useful probably wouldn’t get good at writing assembly

      • @[email protected]
        link
        fedilink
        3
        edit-2
        1 hour ago

        for sure, its perfectly reasonable to say “this tool isn’t useful for me”

        its another thing to say “this tool isn’t useful for anyone”

  • @[email protected]
    link
    fedilink
    English
    67 hours ago

    When this comes to the BSD’s, it will be interesting to see if there is a significant difference in multimedia. I bought Intel 11th gen over 10th for it’s AVX-512.

  • @11111one11111
    link
    -56 hours ago

    This sounds like any standard FOSS work flow. Why are they calling it hand written code? Is that just an affect of the normalized buy start up, use code, ruin code, spin ruined code’s bugs as features, release to public without any tech aupport more than a cheap ai bot to handle ruined code crashes, throw out purchased company’s asset and on to the next.

    Or am I missing something I’m to IT dumb to understand?

    • @corroded
      link
      86 hours ago

      The point isn’t that it’s handwritten code, it’s handwritten assembly. All code is written by hand to some degree, but it’s normally in a higher-level language and compiles down to machine code. Assembly is basically as close as you can get to the bare hardware in terms of control.