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 / mathlibs / host_scalar.om

53 lines · 775 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note op ids are private to the effect adapter; all arithmetic remains in host.om.
3fn native_mhval op ulong a ulong b ulong c ulong d ulong e ulong to ulong
4if eq op 0
5ret mh_time a b
6end
7if eq op 1
8ret mh_sub a b
9end
10if eq op 2
11ret mh_mul a b
12end
13if eq op 3
14ret mh_add a b
15end
16if eq op 4
17ret mh_min a b
18end
19if eq op 5
20ret mh_overlap a b c d
21end
22if eq op 6
23ret mh_rng a b c d
24end
25if eq op 7
26ret mh_rngval a b c d
27end
28if eq op 8
29ret mh_seed a b c
30end
31if eq op 9
32ret mh_phil a b c d e
33end
34if eq op 10
35ret mh_lg a b c
36end
37if eq op 11
38ret mh_chunk a b c d e
39end
40if eq op 12
41ret mh_fill a b
42end
43if eq op 13
44ret mh_poison a b c d
45end
46if eq op 14
47ret mh_div a b
48end
49if eq op 15
50ret mh_basic a b c d
51end
52ret 4294967295
53end