interplane.Get Omega
Read in your language

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

branch main Branches Tags History

CUDApp / om / apiviews / widen.om

13 lines · 288 bytes Raw Blame History
1om2
2note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3note bf16 to f32, exact widen (shift left 16), over the live view.
4fn av_widen x view ushort * y edit f32 * to ulong
5if ne len x len y
6ret 1
7end
8for i ulong len x
9u = uint get x i
10put y i bitcast f32 shl u 16
11end
12ret 0
13end