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/tests/identity_native.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 / tests / identity_native.om` 44 lines · 1051 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note Compose cache/digest.om, blackwell/identity.om, blackwell/id_native.om and this file. 3 note Run once against pre-rename digest/identity, once against the renamed units; compare complete stdout. 4 note 4096 machine-wire states (27 bytes), then 4096 realization-wire states (100 bytes). 5 note These are host-generated wire inputs, not hardware identities or authorization evidence. 6 fn idn_case state ulong count ulong to int 7 data = new uchar 256 0 8 dst = new uchar 32 0 9 for i ulong 256 10 put data i uchar and add state i 255 11 end 12 put data 0 uchar and state 255 13 put data 1 uchar and shr state 8 255 14 if ne bw_id_native data count dst 0 15 ret 1 16 end 17 pos = ulong 0 18 while lt pos 32 bound 32 19 k = write 1 dst pos sub ulong 32 pos 20 if le k 0 21 ret 2 22 end 23 pos = add pos ulong k 24 end 25 if ne bw_id_native data 257 dst long -1 26 ret 3 27 end 28 ret 0 29 end 30 fn main to int 31 for state ulong 4096 32 r = idn_case state 27 33 if ne r 0 34 ret r 35 end 36 end 37 for state ulong 4096 38 r = idn_case add state 4096 100 39 if ne r 0 40 ret r 41 end 42 end 43 ret 0 44 end