Login
You're viewing the code4lib.social public feed.
  • Nov 28, 2026, 10:59 PM

    @rygorous Playing with the AVX512 VNNI dot implementation, as I've never had an excuse before =)

    Is there some _evil_ store forwarding cost on Xeon? Quantizer tables are written as 2x 128-bit values, and then loaded by AVX512 as a single wide load, and it kills performance.

    If I force it to load as 128-bit values and manually pack (who doesn't like a volatile pointer hack) it seems much happier, so I'm guessing the size mismatch causes the store-to-load forwarding path to crap out.

    💬 1🔄 0⭐ 0

Replies

  • Nov 28, 2026, 11:07 PM

    @thesolidpixel Vector loads that span multiple stores stall until all the constituent stores are retired. No forwarding whatsoever. Other direction (partial loads that are covered by a single wide vector store) is usually fine.

    Pretty much the same on AMD HW as well.

    💬 0🔄 0⭐ 0