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 / stream-fixtures.om
| 1 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | note Native data-frame tests. No generated program is compiled or executed here. |
| 3 | fn pw p ulong v ulong to void |
| 4 | for i ulong 4 |
| 5 | put packet add p i uchar and shr v mul i 8 255 |
| 6 | end |
| 7 | end |
| 8 | fn frame to void |
| 9 | vec |
| 10 | pw 0 136 |
| 11 | for i ulong 136 |
| 12 | put packet add 4 i get kt i |
| 13 | end |
| 14 | pw 140 28 |
| 15 | for i ulong 28 |
| 16 | put packet add 144 i get ko i |
| 17 | end |
| 18 | end |