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 / apiviews / rope.om
| 1 | om2 |
| 2 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 3 | note One head of the rope table: cos into the first half, sin into the second. |
| 4 | note len tab is twice len cs, and len sn equals len cs. The launch stays in C. |
| 5 | fn av_rope cs view f32 * sn view f32 * tab edit f32 * to ulong |
| 6 | if ne len cs len sn |
| 7 | ret 1 |
| 8 | end |
| 9 | if ne len tab add len cs len cs |
| 10 | ret 1 |
| 11 | end |
| 12 | h = len cs |
| 13 | for i ulong h |
| 14 | put tab i get cs i |
| 15 | put tab add i h get sn i |
| 16 | end |
| 17 | ret 0 |
| 18 | end |