1. X
  2. Pete Cawley
Log inSign up
Pete Cawley
2,520 posts
user avatar
Pete Cawley
@corsix
Scotland
corsix.org
Joined March 2007
213
Following
1,964
Followers
RepliesRepliesMediaMedia

New to X?

Sign up now to get your own personalized timeline!

Create account

By signing up, you agree to the Terms of Service and Privacy Policy, including Cookie Use.

Terms·Privacy·Cookies·Accessibility·Ads Info·© 2026 X Corp.
Don't miss what's happening
People on X are the first to know.
Log inSign up
  • user avatar
    Pete Cawley
    @corsix
    Jan 17, 2025
    Replying to @cmuratori
    Shitpost with AMD on X? Indifference. Shitpost with Tenstorrent on X? They’ll hire you to fix the problem (I’d like to see comprehensive low-level docs describing in detail everything you need to write a driver and a software stack for their HW … so that’s what I’ll be writing)
    32K
  • user avatar
    Pete Cawley
    @corsix
    Sep 2, 2022
    Here it is: github.com/corsix/amx
    Image
    Image
    Image
    Image
  • user avatar
    Pete Cawley
    @corsix
    Aug 31, 2022
    At long last, my reverse-engineered AMX instruction logic matches the hardware behaviour for my full barrage of random test cases. Research complete. Just some writing up to go. Given the size, this'll be a GitHub repo rather than a blog post.
    Image
  • user avatar
    Pete Cawley
    @corsix
    Mar 12, 2023
    Turns out Apple made a few enhancements to AMX between M1 and M2. Most notably, adding bf16 support.
    Image
    M2 Compatibility · Issue #5 · corsix/amx
    From github.com
    19K
  • user avatar
    Pete Cawley
    @corsix
    Aug 1, 2022
    Given: 1. crc32 has throughput 1 on port 1 2. pclmulqdq has throughput 1 on port 5 3. pclmulqdq+pxor can emulate crc32 It seems that fastest crc32 code should divide input in half and issue a crc32 _and_ a pclmulqdq every cycle. Code and numbers at corsix.org/content/fast-c…
  • user avatar
    Pete Cawley
    @corsix
    Apr 22, 2023
    New bloggery: The many ways of converting FP32 to FP16 - corsix.org/content/conver…
    6K
  • user avatar
    Pete Cawley
    @corsix
    Nov 24, 2024
    Replying to @jarredsumner
    … and then TCP requires the checksum of the packet contents to appear before said contents. It’s turtles all the way down.
    4.8K
  • user avatar
    Pete Cawley
    @corsix
    May 9, 2024
    I've wanted something like polyfill-glibc to exist for the last 10 years or so, and now it does: github.com/corsix/polyfil….
    Image
    GitHub - corsix/polyfill-glibc: Patch Linux executables for compatibility with older glibc
    From github.com
    8.9K
  • user avatar
    Pete Cawley
    @corsix
    Jan 31, 2025
    Ready for #FOSDEM: got some hardware to talk about, and some local beer to drink.
    Image
    3.1K
  • user avatar
    Pete Cawley
    @corsix
    May 6, 2024
    I couldn’t find a one-page summary of C23’s stdbit.h anywhere, so I wrote one:
    corsix.org
    C23 stdbit.h quick reference
    15K
  • user avatar
    Pete Cawley
    @corsix
    Jun 6, 2023
    My cheat-sheet for AArch64 vector instructions:
    corsix.org
    A whirlwind tour of AArch64 vector instructions (NEON)
    4.9K
  • user avatar
    Pete Cawley
    @corsix
    Feb 19, 2024
    Replying to @TartanLlama
    Short answer: build dependency graph of ELF files (main executable + all referenced SOs, based on DT_NEEDED etc.), topological sort, iterate over files in reverse order (so main executable last). For each visited file, apply all its relocations. See github.com/andikleen/glib…
    3.1K
  • user avatar
    Pete Cawley
    @corsix
    Dec 3, 2023
    Replying to @whitequark
    Make it a `struct` instead and the `public` after the colon also becomes optional.
    2.8K
  • user avatar
    Pete Cawley
    @corsix
    Oct 6, 2024
    Are you after some RISCV cores with a SIMD ISA on the side? Someone's got you covered.
    corsix.org
    Tenstorrent Wormhole Series Part 6: Vector instruction set
    3.9K
Advertisement
Advertisement