Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/om/cache/templates_fixture.om # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / om / cache / templates_fixture.om` 92 lines · 9008 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note Immutable first successful C exporter/admission fixture from tests/native_artifact_manifest_test.c. 3 note Preserved /home/drakestapleton/handoffs/native-admitted-fixture-`20261028`, device-load=NOT_RUN. 4 note ELF prefix independently located by readelf .nv.info.test offset0x560, span40 ending before0x50. 5 note Raw SHA bytes from standard independent hashlib, NOT kt_abi/kc_sha output. 6 note Exact launch serialization is Composer-owned compose_launchwrite, not a second canonical schema. 7 text kt_cbin "`7f454c460201014108000000000000000200be00010000000000000000000000c00800000000000000060000000000000279000640003800050040000b000100002e7368737472746162002e737472746162002e73796d746162002e746578742e74657374002e6e762e636f6e7374616e74302e74657374002e6e762e696e666f002e6e762e636f6d706174002e6e762e696e666f2e74657374002e6e762e7368617265642e72657365727665642e30002e6e6f74652e6e762e6375696e666f0000746573740000000000000000000000000000000000000000000000000000000000000300040000000000000000000000000000000000010000001210040000000000000000001000000000000000000000000300050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042f08000200000001000000041108000200000000000000041208000200000000000000020900000202020002050500030701010203000002060100040b08000000000000000000043704008200000004170c00000000000000000000f5210003190800040a0800030000008003080003500000031b0100035f0101024a00000436040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000008000000e80300004e564944494120436f727000020079008200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000300000000000000000000000000000000000000400000000000000081000000000000000000000000000000010000000000000000000000000000000b0000000300000000000000000000000000000000000000c1000000000000000600000000000000000000000000000001000000000000000000000000000000130000000200000000000000000000000000000000000000c80000000000000060000000000000000200000002000000080000000000000018000000000000001b00000001000000060000000000000000000000000000008001000000000000100000000000000003000000020000008000000000000000000000000000000026000000010000004200000000000000000000000000000090010000000000008803000000000000030000000400000010000000000000000000000000000000390000000000007000000000000000000000000000000000180500000000000024000000000000000300000000000000040000000000000000000000000000004200000086000070000000000000000000000000000000003c0500000000000024000000000000000000000000000000040000000000000000000000000000004d0000000000007040000000000000000000000000000000600500000000000040000000000000000300000004000000040000000000000000000000000000005b0000000800000003000000000000000000000000000000a0050000000000004000000000000000000000000000000001000000000000000000000000000000710000000700000040000001000000000000000000000000e00500000000000020000000000000000000000002000000040000000000000000000000000000000600000004000000c008000000000000000000000000000000000000000000001801000000000000180100000000000008000000000000000100000004000000c0080000000000000000000000000000000000000000000018010000000000001801000000000000080000000000000001000000050000008001000000000000000000000000000000000000000000001000000000000000100000000000000008000000000000000100000006000000a005000000000000000000000000000000000000000000000000000000000000400000000000000008000000000000000100000004000000900100000000000000000000000000000000000000000000880300000000000088030000000000000800000000000000`" 8 text kt_qmd "`0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000100011002000848b4040000000000000000010000000100000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000`" 9 text kt_args "`0000000000000000`" 10 text kt_id "`35bb93b98b9c3478cf63752b350d3a958e356174325fa5ffe4a87b0dba8b0391`" 11 text kt_fn "test" 12 text kt_hash "`a062bdbb050226157cf8a89074447749ae70b91a936462a57ca674328d8b471faf5570f5a1810b7af78caf4bc70a660f0df51e42baf91d4de5b2328de0e83dfc68e40afdb661b8664fbc2ca649d997567fd7a5209ce7a30dccef5797dda065ef`" 13 fn kt_byte hi uchar lo uchar to uchar 14 ret uchar or shl kt_hex hi 4 kt_hex lo 15 end 16 fn kt_sz wire edit uchar 64 k ulong v ulong to void 17 for i ulong 8 18 put wire add mul k 8 i uchar and shr v mul i 8 255 19 end 20 end 21 fn main to int 22 hashes = new uchar 4096 0 23 for i ulong 96 24 put hashes i kt_byte get kt_hash mul i 2 get kt_hash add mul i 2 1 25 end 26 l = new ulong 32 0 27 wire = new uchar 4096 0 28 put l 0 1 29 put l 1 1 30 put l 2 1 31 put l 3 1 32 put l 4 1 33 put l 5 1 34 put l 6 1 35 put l 8 1 36 put l 11 896 37 put l 12 2 38 put l 13 1 39 put l 14 1 40 for i ulong 12 41 put l add 15 i compose_word hashes i 42 end 43 compose_launchwrite l wire 44 if ne write 1 wire 0 4096 4096 45 ret 91 46 end 47 ret kt_emitfixture 48 end 49 fn kt_emitfixture to int 50 cubin = new uchar 32768 0 51 obs = new uchar 2048 0 52 sizes = new uchar 64 0 53 for i ulong div len kt_cbin 2 54 hi = get kt_cbin mul i 2 55 lo = get kt_cbin add mul i 2 1 56 put cubin i kt_byte hi lo 57 end 58 for i ulong 768 59 hi = get kt_qmd mul i 2 60 lo = get kt_qmd add mul i 2 1 61 put obs i kt_byte hi lo 62 end 63 for i ulong div len kt_args 2 64 hi = get kt_args mul i 2 65 lo = get kt_args add mul i 2 1 66 put obs add 768 i kt_byte hi lo 67 end 68 for i ulong len kt_fn 69 put obs add 896 i get kt_fn i 70 end 71 for i ulong 32 72 hi = get kt_id mul i 2 73 lo = get kt_id add mul i 2 1 74 put obs add 960 i kt_byte hi lo 75 end 76 for i ulong 64 77 put obs add 1024 i get kt_id i 78 end 79 kt_sz sizes 0 div len kt_cbin 2 80 kt_sz sizes 1 div len kt_args 2 81 kt_sz sizes 2 len kt_fn 82 if ne write 1 cubin 0 32768 32768 83 ret 92 84 end 85 if ne write 1 obs 0 2048 2048 86 ret 93 87 end 88 if ne write 1 sizes 0 64 64 89 ret 94 90 end 91 ret 0 92 end