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 / om / blackwell / identity.om
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | note cg_bind owns canonical encodings; this unit only hashes its 256-byte wire. |
| 3 | note Compose with om/cache/digest.om. No duplicated identity admission or encoding. |
| 4 | fn bw_identity data view uchar 256 n ulong dst edit uchar 32 to int |
| 5 | if gt n 256 |
| 6 | ret -1 |
| 7 | end |
| 8 | msg = new uchar 4096 0 |
| 9 | for i ulong n |
| 10 | put msg i get data i |
| 11 | end |
| 12 | ret kc_sha msg n dst |
| 13 | end |