CUDApp
CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.
Brought by drakestapleton
CUDApp / evidence / CUDAPP-OM-CUBIN / wolfram-constants.txt
| 1 | Decimal literals of om/cubin/cubin_elf.om (Omega takes decimal only and has no text in function mode) and the |
| 2 | hex values or strings of src/omega_cubin.c they replace. Converted by the Wolfram Language evaluator (MCP), |
| 3 | 2026-10-27. Byte identity of the packed images is proven separately by make test-om-cubin (every call packed |
| 4 | both ways and compared), not by this table. Byte offsets and section sizes (117+3n, 48+16n, 704, 984 ...) are |
| 5 | byte bookkeeping read off the C writer's layout and are checked by the same byte-identity sweep. |
| 6 | |
| 7 | Query 1: |
| 8 | le[s_] := FromDigits[Reverse[#], 256] & /@ Partition[ToCharacterCode[s], UpTo[8]]; |
| 9 | {le[".shstrtab"], le[".strtab"], le[".symtab"], le[".text."], le[".nv.constant0."], le[".nv.info"], |
| 10 | le[".nv.compat"], le[".nv.info."], le[".nv.shared.reserved.0"], le[".note.nv.cuinfo"], le["NVIDIA Corp"], |
| 11 | FromDigits[Reverse[{16^^7f,16^^45,16^^4c,16^^46,2,1,1,16^^41}],256], |
| 12 | FromDigits[#,16]&/@{"6007902","380","0021f500","0011f000","3e8","70000000","70000086","1000040","42","40","0101","400"}, |
| 13 | BitOr[BitShiftLeft[FromDigits[#[[1]],16],8],#[[2]]]&/@{{"2f",4},{"11",4},{"12",4},{"37",4},{"17",4},{"19",3}, |
| 14 | {"0a",4},{"50",3},{"1b",3},{"5f",3},{"4a",2},{"36",4}}, |
| 15 | {2^24, 2^24*8, 2^27, 8 + 3*32}} |
| 16 | Out[1]= {{7022363563455443758, 98}, {27691700481979182}, {27691700398420782}, {51077770998830}, |
| 17 | {8317708033571843630, 50785646698868}, {8027224783864622638}, {8101253776481349166, 29793}, |
| 18 | {8027224783864622638, 46}, {8241983636974759470, 8243121572516095077, 206936761718}, |
| 19 | {8533809357193702958, 31356346816619310}, {4836937782729987662, 7369327}, 4684026196722992511, |
| 20 | {100694274, 896, 2225408, 1175552, 1000, 1879048192, 1879048326, 16777280, 66, 64, 257, 1024}, |
| 21 | {12036, 4356, 4612, 14084, 5892, 6403, 2564, 20483, 6915, 24323, 18946, 13828}, |
| 22 | {16777216, 134217728, 134217728, 104}} |
| 23 | |
| 24 | Reading: section-name strings as little-endian ulong chunks of up to 8 bytes (written by ps); ELF ident word |
| 25 | 7f 45 4c 46 02 01 01 41; e_flags 0x6007902; param base 0x380; ginfo/attr values; SHT_LOPROC 0x70000000 and |
| 26 | 0x70000086; note flags 0x1000040; .nv.info attribute words (id << 8 | format); array bounds 2^24 (text bytes, |
| 27 | output words), 2^27 output bytes, meta length 8 + 3*32. |
| 28 | |
| 29 | Query 2 (the .nv.compat payload as little-endian 32-bit words): |
| 30 | FromDigits[Reverse[#], 256] & /@ Partition[{16^^02,16^^09,0,0, 2,2,2,0, 2,5,5,0, 3,7,1,1, 2,3,0,0, 2,6,1,0, |
| 31 | 4,16^^0b,8,0, 0,0,0,0, 0,0,0,0}, 4] |
| 32 | Out[1]= {2306, 131586, 328962, 16844547, 770, 67074, 527108, 0, 0} |
| 33 | |
| 34 | Query 3 (2026-10-31, the .note.nv.tkinfo section the sm_121 driver requires, CUDApp#68; chip evidence |
| 35 | evidence/MAX-INTEROP/G2/): |
| 36 | le[s_] := FromDigits[Reverse[ToCharacterCode[s]], 256]; |
| 37 | blob = FromCharacterCode[Join[{0}, ToCharacterCode["cudapp"], {0}, ToCharacterCode["CUDApp omega_cubin sm_121"], {0}, |
| 38 | ToCharacterCode["Build omega_cubin"], {0}, ToCharacterCode["-arch sm_121"], {0}]]; bl = ToCharacterCode[blob]; |
| 39 | <|"blobLen" -> Length[bl], "byte64" -> bl[[65]], "words" -> (FromDigits[Reverse[#], 256] & /@ Partition[Take[bl, 64], 8]), |
| 40 | "offs" -> {1, 1 + 7, 1 + 7 + 26, 1 + 7 + 26 + 18}, "descRaw" -> 24 + Length[bl], "descsz" -> 8*Ceiling[(24 + Length[bl])/8], |
| 41 | "noteSize" -> 24 + 8*Ceiling[(24 + Length[bl])/8], "flags" -> FromDigits["2000000", 16], "dotnotenv" -> le[".note.nv"], |
| 42 | "dottkinfo7" -> le[".tkinfo"], "shstrBase" -> 117 + 16, "shtab12" -> 12*64, "total12" -> 12*64 + 5*56|> |
| 43 | Out[1]= <|"blobLen" -> 65, "byte64" -> 0, "words" -> {31648760991146752, 8007523764898387267, 7094686049299293549, |
| 44 | 3616776899442798185, 2334109707079385137, 8458709397083090287, 7165896803008538978, 3544950142621917288}, |
| 45 | "offs" -> {1, 8, 34, 52}, "descRaw" -> 89, "descsz" -> 96, "noteSize" -> 120, "flags" -> 33554432, |
| 46 | "dotnotenv" -> 8533809357193702958, "dottkinfo7" -> 31356346815968302, "shstrBase" -> 133, "shtab12" -> 768, |
| 47 | "total12" -> 1048|> |
| 48 | Reading: the eight blob words written by wtk from p + 48 (byte 64, the last terminator, stays 0); the string |
| 49 | offsets 1 8 34 52; descsz 96 (89 bytes zero-padded to 8, as ptxas pads its own); section 120 bytes, flags |
| 50 | 0x2000000; ".note.nv" + ".tkinfo" appended to .shstrtab (now 133+3n bytes, the new name at 117+3n); twelve |
| 51 | section headers (768 bytes) and the image total shoff + 1048. |