Skip to content

Instantly share code, notes, and snippets.

@bjacob
bjacob / a.md
Created December 1, 2026 02:23
Framework gfx942 gfx950 gfx1250 gfx1201 gfx1100 Total
Triton 22,907 22,449 35,305 17,225 16,844 114,730
PyTorch 43,212 42,713 41,523 43,042 43,787 214,277
rocjitsu-test-corpus 86 69 152 105 68 480
Aorta 5 5 5 5 5 25
hipBLASLt / Tensile 108 125 410 327 27 997
@bjacob
bjacob / a.md
Created December 1, 2026 02:22

Tests run by framework and architecture

Snapshot: 2026-12-01T02:20:47+00:00

Distinct canonical source/test IDs with a baseline outcome; retries/semantics controls and per-solution diagnostic followups excluded. Attempted includes timeout, setup/compiler and runtime failures, not just numerical passes. Skips/xfails and collections are not attempts. Mixed Torch/Triton host/compiler cases are included.

Attempted

Framework gfx942 gfx950 gfx1250 gfx1201 gfx1100 Total
@bjacob
bjacob / a.md
Created November 30, 2026 23:14

Numerical discrepancies in the Loose-default study

Updated: 2026-11-30T23:12:04+00:00. Testing is ongoing on gfx942, gfx950, gfx1250, gfx1201 and gfx1100. This summarizes the current matched-toolchain campaign; obsolete compiler/test combinations from the earlier pilot are excluded.

No categorized discrepancy so far fails Loose while passing Compatibility. The ledger has 17 architecture/test pairs, comprising five FP-result failures, three FPSan fingerprint failures, and nine other value/state failures. These are not 17 independent bugs. Existing exact arithmetic recovers four Triton checks

@bjacob
bjacob / a.md
Last active November 20, 2026 21:21

What the primes explain in The Music of the Primes

Alessandro Maria Masullo’s The Music of the Primes proposes that a familiar fact about integers has an unfamiliar consequence. Unique factorization gives each prime an independent role in building integers. Pass from multiplication to logarithms and that independence becomes a statement about periods. Masullo’s wager is that the periods of the individual primes impose such strong constraints on a global calculation that the zeros of the Riemann zeta function have only one line on which to lie.

As an explanation of arithmetic, this is ambitious in a specific direction. It offers a way to think about why prime counting, complex zeros, and the distinction between number fields and function fields belong in the same story. It also suggests a prediction about repeated zeros, a question that the Riemann hypothesis (RH) leaves open. Its reach is greatest for the zeta function and its relatives attached to characters of number fields. The manuscript develop

@bjacob
bjacob / a.md
Created November 20, 2026 20:03

I have some thoughts given that i am doing AI-assisted math as a hobby.

  • Yes, there is a gap at the moment in conjecture-making, now that AI is closing all the existing conjectures but not yet contributing new conjectures.
  • From an application standpoint, conjectures are all what matters: if you want to use say the Riemann Hypothesis for a concrete purpose outside of pure math, you don't need a proof that it's true, you only need some experimental evidence that it's true-ish.
  • Applied vs pure math have gradually diverged. For the past 50+ years, they have been completely diverged. But it hasn't always been so. 200 years ago, Fourier analysis was being invented and it was both the leading edge in pure and applied math.
  • After the current "sad" phase of AI reaping all the existing conjectures, we'll be forced to refocus on forming new conjectures. This could not only reconcile human and AI mathematicians; this could reconcile pure and applied math.
  • Unlike conjecture-proving, conjecture-forming tends to
@bjacob
bjacob / a.md
Created November 20, 2026 16:16

rj-arith · GPU instructions on the CPU

Before Now (rj-arith)
CPU implementation Generated instruction handlers and VM helpers VM handler → narrow C interface → lib/arith
Bit-exactness Implicit. Each implementation determined the result. Explicit user preference. Allow approximations, prefer GPU-exact bits, or require them.
SIMD paths CPU-specific code spread across handlers and helpers Separate translation units per CPU target, behind the same interface
Guest rounding Some handlers changed and restored the host rounding mode Explicit guest controls. AVX-512 FMA encodes rounding on the instruction.
  • VM owns wave state, decodes operands, raises guest traps.
4: tailscale0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1280 qdisc fq_codel state UNKNOWN group default qlen 500
link/none
inet 100.65.240.40/32 scope global tailscale0
valid_lft forever preferred_lft forever
inet6 fd7a:115c:a1e0::1f01:f028/128 scope global
valid_lft forever preferred_lft forever
inet6 fe80::7da9:59b6:b181:bc31/64 scope link stable-privacy proto kernel_ll
valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether c8:7f:54:70:3d:36 brd ff:ff:ff:ff:ff:ff
altname enp12s0
altname enxc87f54703d36
inet 10.2.11.114/20 brd 10.2.15.255 scope global dynamic noprefixroute eno1
valid_lft 64894sec preferred_lft 64894sec
➜ workspace hostname -I
10.2.11.114 100.65.240.40 fd7a:115c:a1e0::1f01:f028
@bjacob
bjacob / a.cpp
Created November 13, 2026 19:40
// c := a * b
//
// c is m x n
// a is m x k
// b is k x n
void gemm(const float* a, const float *b, float *c, int m, int n, int k) {
for (int p = 0; p < m; ++p) {
for (int q = 0; q < n; ++q) {
for (int r = 0; r < k; ++r) {
c[q + n * p] += a[r + k * p] * b[q + n * r];

Assessment of Jakub’s AI-assisted review rounds

Assessment dated November 4, 2026, covering recent reviews of the Rocjitsu Arithmetic Library (rj-arith) PR stack, including a batch of 35 inline comments and two substantive review-summary requests. The stack introduces the library and progressively replaces Rocjitsu's existing CPU instruction implementations. The project is approaching merge and deliberately favors bounded, selective test coverage over exhaustive fixtures.

This assessment concerns comments posted by Jakub (@kuhar) following a significant