Nothing changes for the default class: the pinned packs are byte-identical (tests/packs.rs), the v2 draw stream is untouched.
LoadClass {mix, load_slots, scratch}: fixed widths w16, w64, w64x4 (4 loads of 64 B), era mixes 50/35/15 and 25/50/25 drawn per load with one extra below(100) roll, and the scratch variant scr0/2/4/8 (persistent warps, 1 MiB per warp, tagged lazy fill, measurement only). A wide load reads the W-aligned address and folds every word: x = dst ^ w0; x = (rotl(x, 11) * 0x9e3779b1) ^ w[j]. Program ids carry the class. proto-opencl/host.c taken from opencl-rdna4 23810df (--memprobe, select read-back).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
127 lines
15 KiB
JSON
127 lines
15 KiB
JSON
{
|
|
"format": "igneum-program-pack-3",
|
|
"generator": 2,
|
|
"attempt": 0,
|
|
"program_id": "0xc183ffe6ab211605",
|
|
"program_id_derivation": "FNV-1a 64 over 'igneum-program/' || generator_le32 || seed_words as little-endian bytes || attempt_le32",
|
|
"dataset_mode": "memory-hard",
|
|
"seed": "igneum-readwidth/B/2",
|
|
"seed_bytes": "69676e65756d2d7265616477696474682f422f32",
|
|
"seed_words": ["0x8c11f8d8", "0x945e59f8", "0x4ab18392", "0xa6381ed7", "0x797fadef", "0x188a03ac", "0xea7032e0", "0xcaf097f4"],
|
|
"seed_derivation": "seed_words = FNV-1a 64 over seed_bytes (attempt 0) or seed_bytes || attempt_le32 (attempt k >= 1), basis ^ (salt * 0x9E3779B97F4A7C15) for salt 0..3, then h ^= h>>33; h *= 0xff51afd7ed558ccd; h ^= h>>33; words[2*salt] = low 32, words[2*salt+1] = high 32",
|
|
"generator_rule": "version 2: exactly 16 load slots drawn first from instructions 1..63 (partial Fisher-Yates), the other 48 ops from the ten non-load weights (sum 75); a load's source is drawn from the registers other than dst written by an earlier instruction and not read by a load since; the candidate must pass the acceptance rule of spec 01 section 1.4.6 (static: no cyclically stale load source, every register has an injecting write; dynamic: 64 units on the seed-keyed closed-form dataset with no constant register bit, no lane-constant load site, under 164 saturated final values, every output bit within 136 of 1024, distinct addresses above 245760), else the next attempt of the seed is tried",
|
|
"lanes": 32,
|
|
"registers": 8,
|
|
"iterations": 8,
|
|
"instruction_count": 64,
|
|
"loads_per_hash": 128,
|
|
"load_class": "mix25-50-25",
|
|
"load_slots": 16,
|
|
"load_mix_percent_4_16_64": [25, 50, 25],
|
|
"load_width_counts_4_16_64": [1, 7, 8],
|
|
"bytes_per_hash": 5024,
|
|
"wide_load": "read-width experiment (5 October 2026, docs/plans/read-width.md), NOT the lottery hash: a load of W words (width field, 4 or 16) reads dataset[b .. b + W) with b = (src & mask) & ~(W - 1) and folds every word into dst: x = dst ^ w[0]; for j in 1..W: x = (rotl(x, 11) * 0x9e3779b1) ^ w[j]; dst = x; width 1 is the plain load; the width is drawn per instruction from the class mix with one extra below(100) draw after the nine of version 2, and the program id is FNV-1a 64 over 'igneum-program-rw/' || generator_le32 || seed words || attempt_le32 || mix[3] || load_slots",
|
|
"op_mix": {"load": 16, "add": 8, "rotl": 8, "rotr": 7, "xor": 7, "mad": 4, "mulhi": 4, "mul": 3, "or": 3, "shfl": 3, "sub": 1},
|
|
"register_init": "for i in 0..7: x = nonce ^ seed_words[i]; x += 0x9e3779b9 * (i+1) (mod 2^32); x = splitmix32(x); r[i] = x ^ seed_words[(i+1) & 7]",
|
|
"splitmix32": "x ^= x>>16; x *= 0x7feb352d; x ^= x>>15; x *= 0x846ca68b; x ^= x>>16",
|
|
"iteration": "sel = r0 sampled once at the top of each iteration, then all instructions in order",
|
|
"output": "lo = r0 ^ rotl(r1,7) ^ rotl(r2,14) ^ rotl(r3,21); hi = r4 ^ rotl(r5,9) ^ rotl(r6,18) ^ rotl(r7,27); out = (hi << 32) | lo",
|
|
"op_semantics": {
|
|
"add": "dst = dst + src + (bit `bit` of sel ? imm2 : imm)",
|
|
"sub": "dst = dst - src",
|
|
"mul": "dst = dst * src (low 32)",
|
|
"mulhi": "dst = high 32 bits of dst * src",
|
|
"xor": "dst = dst ^ src",
|
|
"or": "dst = dst | src",
|
|
"rotl": "dst = rotl(dst, rot), rot in 1..31",
|
|
"rotr": "dst = rotr(dst, src & 31)",
|
|
"mad": "dst = src * src2 + dst",
|
|
"shfl": "dst = dst ^ (src of lane (lane ^ mask)), mask in {1,2,4,8,16}, within the 32-lane warp",
|
|
"load": "dst = dst ^ dataset[src & dataset.mask]",
|
|
"wload": "base = (src of lane 0 & dataset.mask) & ~31; dst = dst ^ dataset[base + lane] (warp-coalesced 128-byte load, lever b, only when --wide-frac > 0)"
|
|
},
|
|
"dataset": {
|
|
"log2_words": 28,
|
|
"bytes": 1073741824,
|
|
"mask": "0x0fffffff",
|
|
"day": "2026-10-03",
|
|
"day_bytes": "6461792f323032362d31302d3033",
|
|
"day_words_from": "seed_words_from_bytes(day_bytes)",
|
|
"d0": "0x3067619f",
|
|
"d1": "0x3c269176",
|
|
"mode": "memory-hard",
|
|
"spec": "proto-metal/MEMHARD.md",
|
|
"key": ["0x3067619f", "0x3c269176", "0x84a03b03", "0xf8c63294", "0xff977c5b", "0xe60def3e", "0x63630141", "0xb8fbcb58"],
|
|
"key_derivation": "the 8 words of seed_words_from_bytes(day_bytes); d0, d1 are key[0], key[1]",
|
|
"cache": {"log2_words": 26, "bytes": 268435456, "line_words": 16, "segment_lines": 64, "segments": 65536, "block": "ChaCha12 core + feed-forward, rotations 16 12 8 7", "sigma": ["0x61707865", "0x3320646e", "0x79622d32", "0x6b206574"], "tag": ["0x49676e65", "0x756d4d48"], "chain": "in_j = prev_line ^ (sigma[0..3] || key[0..7] || seg || j || tag[0..1]); line_j = block(in_j); prev_0 = 0"},
|
|
"mixer": {"draw": "SplitMix64 seeded with key[0] | key[1] << 32: rot[0..7] = 1 + next() % 31, mul[0..15] = low32(next()) | 1, rc[0..15] = low32(next())", "rot": [20, 20, 19, 4, 26, 3, 3, 27], "mul": ["0x42146205", "0x52cbe0fb", "0x7ecf4a03", "0x6728907f", "0xd81d9751", "0x132952c3", "0xf60de277", "0x05358035", "0xbaf6499d", "0xe4db9667", "0x3e98f45d", "0xd0004edd", "0x2691630d", "0x9beb3bcf", "0xab310379", "0x99cfb423"], "rc": ["0xbab68293", "0xcc162340", "0x6ce151cc", "0xe62b8997", "0xc9c80297", "0xf74a1654", "0x3d704af5", "0x3cf522b7", "0x2b9cac04", "0xa880ac10", "0x13e5dd1d", "0x6fc3e233", "0x2d83eeac", "0x9006e8bf", "0x2c4b5362", "0x31b49ee2"], "round": "for i in 0..15: s[i] = (s[i] ^ (rc[i] + (r+1) * 0x9E3779B9)) * mul[i]; then quarter rounds on columns (0,4,8,12) (1,5,9,13) (2,6,10,14) (3,7,11,15) with rot[0..3] and diagonals (0,5,10,15) (1,6,11,12) (2,7,8,13) (3,4,9,14) with rot[4..7]", "quarter_round": "a += b; d ^= a; d = rotl(d, r1); c += d; b ^= c; b = rotl(b, r2); a += b; d ^= a; d = rotl(d, r3); c += d; b ^= c; b = rotl(b, r4)"},
|
|
"item": "s[0..7] = key; s[8+i] = t * mul[i] + rc[i] for i in 0..7; for r in 0..7: s = M_r(s); line = s[0] & 0x003fffff; s[i] ^= cache[line * 16 + i]; then s = M_8(s); item(t) = s",
|
|
"word": "dataset[w] = item(w >> 4)[w & 15]"
|
|
},
|
|
"instructions": [
|
|
{"i": 0, "op": "xor", "dst": 0, "src": 6, "src2": 6, "imm": "0xb5a6acaf", "imm2": "0x3a16d365", "rot": 22, "bit": 0, "mask": 1, "width": 1},
|
|
{"i": 1, "op": "mad", "dst": 0, "src": 1, "src2": 4, "imm": "0x629ea39c", "imm2": "0x2bd64262", "rot": 21, "bit": 24, "mask": 1, "width": 1},
|
|
{"i": 2, "op": "rotl", "dst": 2, "src": 5, "src2": 5, "imm": "0x4f98c110", "imm2": "0x0d82f00c", "rot": 21, "bit": 16, "mask": 4, "width": 1},
|
|
{"i": 3, "op": "rotr", "dst": 3, "src": 0, "src2": 2, "imm": "0xa6685e68", "imm2": "0x70585b41", "rot": 19, "bit": 0, "mask": 8, "width": 1},
|
|
{"i": 4, "op": "add", "dst": 0, "src": 2, "src2": 2, "imm": "0x7a34b651", "imm2": "0x474ae392", "rot": 3, "bit": 7, "mask": 16, "width": 1},
|
|
{"i": 5, "op": "mulhi", "dst": 0, "src": 3, "src2": 2, "imm": "0x0e2e05ef", "imm2": "0x0950cfa8", "rot": 31, "bit": 8, "mask": 2, "width": 1},
|
|
{"i": 6, "op": "shfl", "dst": 3, "src": 6, "src2": 7, "imm": "0x41d636b4", "imm2": "0xa1978647", "rot": 13, "bit": 19, "mask": 4, "width": 1},
|
|
{"i": 7, "op": "rotr", "dst": 7, "src": 2, "src2": 6, "imm": "0x2a34c680", "imm2": "0x8b079edd", "rot": 27, "bit": 4, "mask": 1, "width": 1},
|
|
{"i": 8, "op": "load", "dst": 2, "src": 0, "src2": 2, "imm": "0x6ca9f362", "imm2": "0x38680556", "rot": 21, "bit": 5, "mask": 8, "width": 16},
|
|
{"i": 9, "op": "or", "dst": 4, "src": 5, "src2": 6, "imm": "0x0ede3e17", "imm2": "0xab200cc3", "rot": 27, "bit": 8, "mask": 16, "width": 1},
|
|
{"i": 10, "op": "load", "dst": 0, "src": 4, "src2": 0, "imm": "0xb3a5ec67", "imm2": "0x0ce446f7", "rot": 1, "bit": 8, "mask": 16, "width": 16},
|
|
{"i": 11, "op": "load", "dst": 5, "src": 0, "src2": 1, "imm": "0x08d3c266", "imm2": "0x2d844647", "rot": 12, "bit": 20, "mask": 16, "width": 4},
|
|
{"i": 12, "op": "load", "dst": 4, "src": 7, "src2": 7, "imm": "0x0b891e32", "imm2": "0x8b22c632", "rot": 2, "bit": 10, "mask": 1, "width": 4},
|
|
{"i": 13, "op": "add", "dst": 4, "src": 0, "src2": 1, "imm": "0x99426786", "imm2": "0xf58f0389", "rot": 10, "bit": 16, "mask": 1, "width": 1},
|
|
{"i": 14, "op": "add", "dst": 0, "src": 6, "src2": 7, "imm": "0x6c662222", "imm2": "0xb5bbd552", "rot": 29, "bit": 31, "mask": 8, "width": 1},
|
|
{"i": 15, "op": "rotr", "dst": 4, "src": 6, "src2": 3, "imm": "0x0a5bcff8", "imm2": "0xb73018d3", "rot": 10, "bit": 8, "mask": 4, "width": 1},
|
|
{"i": 16, "op": "xor", "dst": 4, "src": 1, "src2": 4, "imm": "0xf986d47e", "imm2": "0x9212f429", "rot": 28, "bit": 21, "mask": 16, "width": 1},
|
|
{"i": 17, "op": "rotl", "dst": 3, "src": 7, "src2": 4, "imm": "0x8de91805", "imm2": "0xc7b33ed8", "rot": 22, "bit": 27, "mask": 4, "width": 1},
|
|
{"i": 18, "op": "load", "dst": 3, "src": 4, "src2": 2, "imm": "0x084e3922", "imm2": "0x2cdb1d35", "rot": 29, "bit": 1, "mask": 8, "width": 4},
|
|
{"i": 19, "op": "rotr", "dst": 3, "src": 0, "src2": 5, "imm": "0x5e1362d5", "imm2": "0x3a804b96", "rot": 4, "bit": 11, "mask": 8, "width": 1},
|
|
{"i": 20, "op": "load", "dst": 1, "src": 3, "src2": 6, "imm": "0x5269dadb", "imm2": "0x9c710481", "rot": 31, "bit": 16, "mask": 4, "width": 4},
|
|
{"i": 21, "op": "rotl", "dst": 4, "src": 2, "src2": 6, "imm": "0x527da520", "imm2": "0x380edfcd", "rot": 8, "bit": 25, "mask": 16, "width": 1},
|
|
{"i": 22, "op": "load", "dst": 1, "src": 5, "src2": 7, "imm": "0xd9616dc0", "imm2": "0xcc1e9bb1", "rot": 25, "bit": 12, "mask": 8, "width": 16},
|
|
{"i": 23, "op": "rotr", "dst": 0, "src": 3, "src2": 7, "imm": "0x7e7e2717", "imm2": "0x4b659383", "rot": 4, "bit": 3, "mask": 1, "width": 1},
|
|
{"i": 24, "op": "add", "dst": 4, "src": 1, "src2": 6, "imm": "0x05f4dd31", "imm2": "0xd1ff184b", "rot": 27, "bit": 13, "mask": 8, "width": 1},
|
|
{"i": 25, "op": "xor", "dst": 4, "src": 2, "src2": 5, "imm": "0xd73346b3", "imm2": "0x2e9e82b4", "rot": 27, "bit": 28, "mask": 4, "width": 1},
|
|
{"i": 26, "op": "mulhi", "dst": 3, "src": 2, "src2": 4, "imm": "0xd9afc8a7", "imm2": "0xc38e4e80", "rot": 23, "bit": 24, "mask": 4, "width": 1},
|
|
{"i": 27, "op": "sub", "dst": 5, "src": 7, "src2": 1, "imm": "0x1b5d4625", "imm2": "0xc275a42b", "rot": 30, "bit": 11, "mask": 2, "width": 1},
|
|
{"i": 28, "op": "load", "dst": 3, "src": 5, "src2": 7, "imm": "0x329571c7", "imm2": "0x000b807e", "rot": 25, "bit": 26, "mask": 8, "width": 16},
|
|
{"i": 29, "op": "or", "dst": 5, "src": 7, "src2": 3, "imm": "0xc5afee75", "imm2": "0xc73ec965", "rot": 15, "bit": 17, "mask": 8, "width": 1},
|
|
{"i": 30, "op": "rotl", "dst": 4, "src": 3, "src2": 6, "imm": "0x0e74c55a", "imm2": "0xad6ac031", "rot": 28, "bit": 3, "mask": 4, "width": 1},
|
|
{"i": 31, "op": "xor", "dst": 3, "src": 5, "src2": 4, "imm": "0x79d4fac3", "imm2": "0xf48a2d2e", "rot": 24, "bit": 12, "mask": 1, "width": 1},
|
|
{"i": 32, "op": "mul", "dst": 2, "src": 1, "src2": 4, "imm": "0x1dba16cc", "imm2": "0xd0cf73d1", "rot": 26, "bit": 3, "mask": 1, "width": 1},
|
|
{"i": 33, "op": "load", "dst": 3, "src": 4, "src2": 1, "imm": "0xd4328498", "imm2": "0x0140c7e0", "rot": 28, "bit": 24, "mask": 8, "width": 4},
|
|
{"i": 34, "op": "shfl", "dst": 5, "src": 4, "src2": 7, "imm": "0x7f9d6623", "imm2": "0x063550be", "rot": 14, "bit": 2, "mask": 16, "width": 1},
|
|
{"i": 35, "op": "load", "dst": 6, "src": 5, "src2": 4, "imm": "0xec4cd413", "imm2": "0xe62d9347", "rot": 12, "bit": 13, "mask": 2, "width": 4},
|
|
{"i": 36, "op": "load", "dst": 4, "src": 6, "src2": 0, "imm": "0x4fa040f1", "imm2": "0xc537e766", "rot": 12, "bit": 23, "mask": 4, "width": 16},
|
|
{"i": 37, "op": "mad", "dst": 6, "src": 2, "src2": 2, "imm": "0x2fa75f28", "imm2": "0xf2a66942", "rot": 8, "bit": 3, "mask": 4, "width": 1},
|
|
{"i": 38, "op": "xor", "dst": 6, "src": 3, "src2": 4, "imm": "0xb201f75e", "imm2": "0xa8afa3f4", "rot": 22, "bit": 26, "mask": 1, "width": 1},
|
|
{"i": 39, "op": "load", "dst": 2, "src": 0, "src2": 1, "imm": "0x524d8b9f", "imm2": "0x2197ac78", "rot": 4, "bit": 2, "mask": 4, "width": 1},
|
|
{"i": 40, "op": "mul", "dst": 1, "src": 2, "src2": 7, "imm": "0x3972b861", "imm2": "0x7e4f91f1", "rot": 9, "bit": 23, "mask": 4, "width": 1},
|
|
{"i": 41, "op": "load", "dst": 4, "src": 2, "src2": 2, "imm": "0xcdab329b", "imm2": "0xc5cb8830", "rot": 21, "bit": 10, "mask": 16, "width": 16},
|
|
{"i": 42, "op": "rotl", "dst": 4, "src": 5, "src2": 7, "imm": "0xc1aa2f50", "imm2": "0x8864642e", "rot": 31, "bit": 5, "mask": 1, "width": 1},
|
|
{"i": 43, "op": "load", "dst": 6, "src": 4, "src2": 6, "imm": "0x3805326c", "imm2": "0x75a9eaf4", "rot": 14, "bit": 16, "mask": 8, "width": 4},
|
|
{"i": 44, "op": "add", "dst": 4, "src": 2, "src2": 0, "imm": "0xb045a668", "imm2": "0xdd1539e6", "rot": 16, "bit": 24, "mask": 1, "width": 1},
|
|
{"i": 45, "op": "load", "dst": 5, "src": 1, "src2": 0, "imm": "0xde27aabb", "imm2": "0x256b267e", "rot": 24, "bit": 14, "mask": 2, "width": 16},
|
|
{"i": 46, "op": "add", "dst": 7, "src": 6, "src2": 3, "imm": "0x85c0036e", "imm2": "0x8a264d7d", "rot": 31, "bit": 9, "mask": 4, "width": 1},
|
|
{"i": 47, "op": "mad", "dst": 0, "src": 1, "src2": 3, "imm": "0x844552ff", "imm2": "0x8ee51674", "rot": 23, "bit": 23, "mask": 4, "width": 1},
|
|
{"i": 48, "op": "or", "dst": 7, "src": 0, "src2": 6, "imm": "0x20f7430b", "imm2": "0xf89bf854", "rot": 1, "bit": 10, "mask": 8, "width": 1},
|
|
{"i": 49, "op": "xor", "dst": 6, "src": 4, "src2": 1, "imm": "0x7919ad9e", "imm2": "0xd4e43dd3", "rot": 23, "bit": 22, "mask": 4, "width": 1},
|
|
{"i": 50, "op": "add", "dst": 1, "src": 7, "src2": 3, "imm": "0x376c63cd", "imm2": "0x9d56aa91", "rot": 21, "bit": 11, "mask": 2, "width": 1},
|
|
{"i": 51, "op": "mul", "dst": 5, "src": 4, "src2": 5, "imm": "0xc747bed9", "imm2": "0x204c0638", "rot": 21, "bit": 3, "mask": 2, "width": 1},
|
|
{"i": 52, "op": "rotr", "dst": 7, "src": 0, "src2": 5, "imm": "0x3ef36afd", "imm2": "0x0e3ea570", "rot": 28, "bit": 14, "mask": 1, "width": 1},
|
|
{"i": 53, "op": "xor", "dst": 2, "src": 6, "src2": 7, "imm": "0x9e99cc31", "imm2": "0x78899080", "rot": 6, "bit": 17, "mask": 16, "width": 1},
|
|
{"i": 54, "op": "rotl", "dst": 0, "src": 7, "src2": 6, "imm": "0x25f152bf", "imm2": "0x6ccbd353", "rot": 22, "bit": 23, "mask": 4, "width": 1},
|
|
{"i": 55, "op": "rotr", "dst": 3, "src": 5, "src2": 5, "imm": "0x8187728d", "imm2": "0x6f4f287a", "rot": 2, "bit": 18, "mask": 2, "width": 1},
|
|
{"i": 56, "op": "add", "dst": 6, "src": 2, "src2": 3, "imm": "0x4face1f0", "imm2": "0x7fbd3c70", "rot": 2, "bit": 21, "mask": 2, "width": 1},
|
|
{"i": 57, "op": "shfl", "dst": 0, "src": 1, "src2": 0, "imm": "0x17c29c31", "imm2": "0x5438a0c8", "rot": 29, "bit": 16, "mask": 2, "width": 1},
|
|
{"i": 58, "op": "mad", "dst": 2, "src": 6, "src2": 0, "imm": "0x305dd740", "imm2": "0x5e196392", "rot": 4, "bit": 29, "mask": 2, "width": 1},
|
|
{"i": 59, "op": "mulhi", "dst": 2, "src": 5, "src2": 3, "imm": "0x364a67f1", "imm2": "0x717ceeaa", "rot": 5, "bit": 7, "mask": 4, "width": 1},
|
|
{"i": 60, "op": "rotl", "dst": 5, "src": 6, "src2": 3, "imm": "0x0f0b8fb5", "imm2": "0x257c95f1", "rot": 2, "bit": 13, "mask": 1, "width": 1},
|
|
{"i": 61, "op": "rotl", "dst": 6, "src": 3, "src2": 1, "imm": "0xa3590558", "imm2": "0x372dea9c", "rot": 28, "bit": 19, "mask": 16, "width": 1},
|
|
{"i": 62, "op": "load", "dst": 2, "src": 7, "src2": 1, "imm": "0x2c2192e7", "imm2": "0xc8096ee6", "rot": 16, "bit": 7, "mask": 1, "width": 16},
|
|
{"i": 63, "op": "mulhi", "dst": 7, "src": 1, "src2": 5, "imm": "0x52f561e6", "imm2": "0x62d77ee8", "rot": 13, "bit": 22, "mask": 8, "width": 1}
|
|
]
|
|
}
|