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 / tests / learn53 / moe-series-export.om
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | note HOST_ONLY raw digests: router code/launch count2, combine code/launch count128. |
| 3 | fn main to int |
| 4 | m = new ulong 8 0 |
| 5 | hashes = new uchar 4096 0 |
| 6 | ord = new ulong 128 0 |
| 7 | h = new uchar 32 0 |
| 8 | for i ulong 2 |
| 9 | n = ulong 2 |
| 10 | if eq i 1 |
| 11 | n = 128 |
| 12 | end |
| 13 | for j ulong 2 |
| 14 | ms_fill edit m edit hashes edit ord n j |
| 15 | if eq i 1 |
| 16 | put m 3 5 |
| 17 | end |
| 18 | if ne mc_series m hashes ord edit h 0 |
| 19 | ret 2 |
| 20 | end |
| 21 | if ne write 1 h 0 32 32 |
| 22 | ret 74 |
| 23 | end |
| 24 | end |
| 25 | end |
| 26 | ret 0 |
| 27 | end |