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 / gemmex / probe.om

27 lines · 519 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note Test-only probe over om/gemmex/num.om (concatenate num.om first); exported as omega_gx_probe.
3fn gx_probe op ulong a ulong to ulong
4u = uint and a 4294967295
5if eq op 0
6ret ulong bitcast uint gx_h2f u
7end
8if eq op 1
9ret ulong bitcast uint gx_e4m3 u
10end
11if eq op 2
12ret ulong gx_f2bf u
13end
14if eq op 3
15ret ulong gx_f2h u
16end
17if eq op 4
18ret gx_split u
19end
20if eq op 5
21ret ulong bitcast uint gx_d2fo bitcast f64 a
22end
23if gx_bad shr a 32 u
24ret 1
25end
26ret 0
27end