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 / no-posix / gen / x86linux / omega_native.h

129 lines · 13297 bytes Raw Blame History
1/* Generated by omega-bridge src/native.om: native call ABI v1 (docs/NATIVE-ABI.md).
2 * C and C++ declarations for libomega_native. Regenerate it; do not edit it.
3 * Status: 0 done; 1..14 the Omega trap code; 32 argument refused (null, wrong length, misaligned,
4 * overlap); 33 reentry; 34 bad runtime entry; 35 no stack. The result is written only on status 0.
5 * A long is its two's-complement bits; an array is its address then its element count.
6 * Parameter names carry o_ so no language's reserved words collide. */
7#ifndef OMEGA_NATIVE_H
8#define OMEGA_NATIVE_H
9#include <stdint.h>
10#ifdef __cplusplus
11extern "C" {
12#endif
13#define OMEGA_OK 0u
14#define OMEGA_BAD_ARG 32u
15#define OMEGA_REENTRY 33u
16#define OMEGA_BAD_RT 34u
17#define OMEGA_NO_STACK 35u
18#define OMEGA2_IDENT_bw_enc_sm121 "omega-ident 1 unit=bw_enc_sm121 abi=2 profile=OM-2 src=eec371e2d636b701b4c979c712ef761b350d279b839aff42150c67816d166022 omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
19const char *omega2_ident_bw_enc_sm121(void);
20/* fn bw_enc_sm121 ins view ulong 8192 phys view ulong 288 n ulong pad ulong code edit uchar 16384 to ulong */
21uint32_t omega2_bw_enc_sm121(uint64_t *result, const uint64_t *o_ins, uint64_t o_ins_len, const uint64_t *o_phys, uint64_t o_phys_len, uint64_t o_n, uint64_t o_pad, uint8_t *o_code, uint64_t o_code_len);
22#define OMEGA2_IDENT_cubin_elf "omega-ident 1 unit=cubin_elf abi=2 profile=OM-2 src=fa9c668340a2a93b31a71261db9bf48145eba77f543e453b96696f79ad1a13e7 omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
23const char *omega2_ident_cubin_elf(void);
24/* fn cubin_elf m view ulong 104 nm view uchar 64 tx view uchar 16777216 o edit ulong 16777216 to ulong */
25uint32_t omega2_cubin_elf(uint64_t *result, const uint64_t *o_m, uint64_t o_m_len, const uint8_t *o_nm, uint64_t o_nm_len, const uint8_t *o_tx, uint64_t o_tx_len, uint64_t *o_o, uint64_t o_o_len);
26#define OMEGA2_IDENT_no_bf16 "omega-ident 1 unit=no_bf16 abi=2 profile=OM-2 src=492bf9b6687220fc29b489cc5d790e116b9303e0dcca12790c887022a82bcc9e omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
27const char *omega2_ident_no_bf16(void);
28/* fn no_bf16 raw ulong to ulong */
29uint32_t omega2_no_bf16(uint64_t *result, uint64_t o_raw);
30#define OMEGA2_IDENT_bw_qmd "omega-ident 1 unit=bw_qmd abi=2 profile=OM-2 src=52178653011fa1ea98ba377bf9db6d9f3f883c80e531fcf4d052fc5038cb1873 omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
31const char *omega2_ident_bw_qmd(void);
32/* fn bw_qmd op ulong m view ulong 16 q edit ulong 224 to ulong */
33uint32_t omega2_bw_qmd(uint64_t *result, uint64_t o_op, const uint64_t *o_m, uint64_t o_m_len, uint64_t *o_q, uint64_t o_q_len);
34#define OMEGA2_IDENT_amp_qmd "omega-ident 1 unit=amp_qmd abi=2 profile=OM-2 src=df9eef7ffb22e2f9bb87176e91ddbc1b1f6c7cf04dfe8de53cf053bc79122d8e omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
35const char *omega2_ident_amp_qmd(void);
36/* fn amp_qmd op ulong a view ulong 16 q edit uchar 256 to ulong */
37uint32_t omega2_amp_qmd(uint64_t *result, uint64_t o_op, const uint64_t *o_a, uint64_t o_a_len, uint8_t *o_q, uint64_t o_q_len);
38#define OMEGA2_IDENT_admit "omega-ident 1 unit=admit abi=2 profile=OM-2 src=fc14535990c2241911f8202869017ad2c98ec5da24eb88ea0968bbe7ac8d73ba omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
39const char *omega2_ident_admit(void);
40/* fn decide op ulong a view ulong 16 o edit ulong 4 to ulong */
41uint32_t omega2_decide(uint64_t *result, uint64_t o_op, const uint64_t *o_a, uint64_t o_a_len, uint64_t *o_o, uint64_t o_o_len);
42#define OMEGA2_IDENT_words "omega-ident 1 unit=words abi=2 profile=OM-2 src=708998b38eb5c0c641fdd9a818b17e2044b000c7a41d5475d3b89a02c36c3d9e omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
43const char *omega2_ident_words(void);
44/* fn emit op ulong a view ulong 16 o edit ulong 32 to ulong */
45uint32_t omega2_emit(uint64_t *result, uint64_t o_op, const uint64_t *o_a, uint64_t o_a_len, uint64_t *o_o, uint64_t o_o_len);
46#define OMEGA2_IDENT_park "omega-ident 1 unit=park abi=2 profile=OM-2 src=ee122eb13036986a41792ddc422ff8042c734eb75f54a534fd9451f18761ff51 omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
47const char *omega2_ident_park(void);
48/* fn scan idx view ulong 512 gen view ulong 512 want ulong wgen ulong to ulong */
49uint32_t omega2_scan(uint64_t *result, const uint64_t *o_idx, uint64_t o_idx_len, const uint64_t *o_gen, uint64_t o_gen_len, uint64_t o_want, uint64_t o_wgen);
50#define OMEGA2_IDENT_book "omega-ident 1 unit=book abi=2 profile=OM-2 src=59f8b6e2fbd102f587e5a8dc9b1017823c1b748f2b75d147955288a943eae4f4 omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
51const char *omega2_ident_book(void);
52/* fn book op ulong a view ulong 16 o edit ulong 4 to ulong */
53uint32_t omega2_book(uint64_t *result, uint64_t o_op, const uint64_t *o_a, uint64_t o_a_len, uint64_t *o_o, uint64_t o_o_len);
54#define OMEGA2_IDENT_streams "omega-ident 1 unit=streams abi=2 profile=OM-2 src=bef6bc0dd56878d6d337a39b79224c0d011b50d7090fdf41d07b319ceb29f445 omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
55const char *omega2_ident_streams(void);
56/* fn streams_words op ulong a view ulong 16 o edit ulong 32 to ulong */
57uint32_t omega2_streams_words(uint64_t *result, uint64_t o_op, const uint64_t *o_a, uint64_t o_a_len, uint64_t *o_o, uint64_t o_o_len);
58#define OMEGA2_IDENT_no_avbf "omega-ident 1 unit=no_avbf abi=2 profile=OM-2 src=ec482d2936d137c39d93f5464d996858c5cf3b917dc9cb734b59711eeba70d13 omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
59const char *omega2_ident_no_avbf(void);
60/* fn no_avbf md ulong raw ulong to ulong */
61uint32_t omega2_no_avbf(uint64_t *result, uint64_t o_md, uint64_t o_raw);
62#define OMEGA2_IDENT_regalloc "omega-ident 1 unit=regalloc abi=2 profile=OM-2 src=ddc8a56c4c0ad88a2c38bdcdfbbb403c084b3f5df03e809d6fcfcff296e00d58 omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
63const char *omega2_ident_regalloc(void);
64/* fn ra_run m edit ulong 4096 to long */
65uint32_t omega2_ra_run(uint64_t *result, uint64_t *o_m, uint64_t o_m_len);
66#define OMEGA2_IDENT_regalloc_ir "omega-ident 1 unit=regalloc_ir abi=2 profile=OM-2 src=1ac4cde69b7e0241f68344b9e9f56ef2244c25633bd35844d3561ac921cb945d omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
67const char *omega2_ident_regalloc_ir(void);
68/* fn ra_ir kind ulong a long b long to long */
69uint32_t omega2_ra_ir(uint64_t *result, uint64_t o_kind, uint64_t o_a, uint64_t o_b);
70#define OMEGA2_IDENT_regalloc_live "omega-ident 1 unit=regalloc_live abi=2 profile=OM-2 src=b7740555acf94c0417179741408f00d8108396888039b89c37c02b94592c6131 omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
71const char *omega2_ident_regalloc_live(void);
72/* fn ra_live kind ulong a ulong b long c long d ulong e ulong to long */
73uint32_t omega2_ra_live(uint64_t *result, uint64_t o_kind, uint64_t o_a, uint64_t o_b, uint64_t o_c, uint64_t o_d, uint64_t o_e);
74#define OMEGA2_IDENT_cg_matmul "omega-ident 1 unit=cg_matmul abi=2 profile=OM-2 src=2a3079252e2920c31ca76f56797243feb4053fba7732a20e4e13ddc654f2e9b7 omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
75const char *omega2_ident_cg_matmul(void);
76/* fn cg_matmul kind ulong a ulong b ulong c ulong to ulong */
77uint32_t omega2_cg_matmul(uint64_t *result, uint64_t o_kind, uint64_t o_a, uint64_t o_b, uint64_t o_c);
78#define OMEGA2_IDENT_cg_matmul_params "omega-ident 1 unit=cg_matmul_params abi=2 profile=OM-2 src=661c3df61825310b483bd9336d64e9cdb87b363007c64f068d5086849b8e5965 omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
79const char *omega2_ident_cg_matmul_params(void);
80/* fn cg_par grid ulong u ulong r ulong c ulong mutant long to ulong */
81uint32_t omega2_cg_par(uint64_t *result, uint64_t o_grid, uint64_t o_u, uint64_t o_r, uint64_t o_c, uint64_t o_mutant);
82#define OMEGA2_IDENT_cg_matmul_i32 "omega-ident 1 unit=cg_matmul_i32 abi=2 profile=OM-2 src=0a6f0eda161d4cb2264813a0ae86a766c5826a1e17a80243dc963efcada75146 omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
83const char *omega2_ident_cg_matmul_i32(void);
84/* fn cg_i32 kind ulong a ulong b ulong c ulong i edit ulong 8192 m edit ulong 512 to ulong */
85uint32_t omega2_cg_i32(uint64_t *result, uint64_t o_kind, uint64_t o_a, uint64_t o_b, uint64_t o_c, uint64_t *o_i, uint64_t o_i_len, uint64_t *o_m, uint64_t o_m_len);
86#define OMEGA2_IDENT_cg_matmul_tensor "omega-ident 1 unit=cg_matmul_tensor abi=2 profile=OM-2 src=a864b4c4f4226f02a6c7c038b16aaf04cd20e7e994a7d4c39f7c707476782ae1 omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
87const char *omega2_ident_cg_matmul_tensor(void);
88/* fn cg_tens kind ulong a ulong b ulong c ulong i edit ulong 8192 m edit ulong 512 to ulong */
89uint32_t omega2_cg_tens(uint64_t *result, uint64_t o_kind, uint64_t o_a, uint64_t o_b, uint64_t o_c, uint64_t *o_i, uint64_t o_i_len, uint64_t *o_m, uint64_t o_m_len);
90#define OMEGA2_IDENT_cg_matmul_loop "omega-ident 1 unit=cg_matmul_loop abi=2 profile=OM-2 src=3485ba6ad107ceaaf63a17c587da7d7306f331827d488cc1d2e9370d4d17e6b5 omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
91const char *omega2_ident_cg_matmul_loop(void);
92/* fn cg_loop kind ulong a ulong b ulong c ulong i edit ulong 8192 m edit ulong 512 to ulong */
93uint32_t omega2_cg_loop(uint64_t *result, uint64_t o_kind, uint64_t o_a, uint64_t o_b, uint64_t o_c, uint64_t *o_i, uint64_t o_i_len, uint64_t *o_m, uint64_t o_m_len);
94#define OMEGA2_IDENT_cg_matmul_frag "omega-ident 1 unit=cg_matmul_frag abi=2 profile=OM-2 src=5cdb3fec7920c796dac4c73ca93716c456059e2cc405e73098163fd1ac6733f0 omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
95const char *omega2_ident_cg_matmul_frag(void);
96/* fn cg_frag kind ulong a ulong b ulong c ulong i edit ulong 8192 m edit ulong 512 to ulong */
97uint32_t omega2_cg_frag(uint64_t *result, uint64_t o_kind, uint64_t o_a, uint64_t o_b, uint64_t o_c, uint64_t *o_i, uint64_t o_i_len, uint64_t *o_m, uint64_t o_m_len);
98#define OMEGA2_IDENT_cg_matmul_block "omega-ident 1 unit=cg_matmul_block abi=2 profile=OM-2 src=ab817e1e3b0419679c948ce16f727419aad514131fabf7526440034af69d7574 omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
99const char *omega2_ident_cg_matmul_block(void);
100/* fn cg_block kind ulong a ulong b ulong c ulong i edit ulong 8192 m edit ulong 512 to ulong */
101uint32_t omega2_cg_block(uint64_t *result, uint64_t o_kind, uint64_t o_a, uint64_t o_b, uint64_t o_c, uint64_t *o_i, uint64_t o_i_len, uint64_t *o_m, uint64_t o_m_len);
102#define OMEGA2_IDENT_cg_vecadd "omega-ident 1 unit=cg_vecadd abi=2 profile=OM-2 src=9a08dcdb025797282919ce8de24e92783c696b11ec34e5a9b4f0b460f0be52ed omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
103const char *omega2_ident_cg_vecadd(void);
104/* fn cg_vec d edit uchar 512 to long */
105uint32_t omega2_cg_vec(uint64_t *result, uint8_t *o_d, uint64_t o_d_len);
106#define OMEGA2_IDENT_cg_bind "omega-ident 1 unit=cg_bind abi=2 profile=OM-2 src=834bb0f0f5be78b9b21ffc123f9f0c5e068f767452cec4653954c84b9e905132 omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
107const char *omega2_ident_cg_bind(void);
108/* fn cg_bind kind ulong a ulong b ulong w edit uchar 256 to long */
109uint32_t omega2_cg_bind(uint64_t *result, uint64_t o_kind, uint64_t o_a, uint64_t o_b, uint8_t *o_w, uint64_t o_w_len);
110#define OMEGA2_IDENT_cg_pack_len "omega-ident 1 unit=cg_pack_len abi=2 profile=OM-2 src=2ecfd0cc9309e08cc93bedd176c9903aa860a9a0e4ccf3dec874cb66d7ccd7ec omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
111const char *omega2_ident_cg_pack_len(void);
112/* fn cg_pklen p edit ulong 12 to long */
113uint32_t omega2_cg_pklen(uint64_t *result, uint64_t *o_p, uint64_t o_p_len);
114#define OMEGA2_IDENT_cg_pack_h "omega-ident 1 unit=cg_pack_h abi=2 profile=OM-2 src=056df72e8d8400449b8eb3904075b752165883c2a3695aee03f583e0715b333c omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
115const char *omega2_ident_cg_pack_h(void);
116/* fn cg_pkh p view ulong 12 s view uchar * d edit ushort * to long */
117uint32_t omega2_cg_pkh(uint64_t *result, const uint64_t *o_p, uint64_t o_p_len, const uint8_t *o_s, uint64_t o_s_len, uint16_t *o_d, uint64_t o_d_len);
118#define OMEGA2_IDENT_cg_sentin "omega-ident 1 unit=cg_sentin abi=2 profile=OM-2 src=9061ec992289c9ac188caa7a06a12fd3c1d80996cb098d022329500ad07454af omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
119const char *omega2_ident_cg_sentin(void);
120/* fn sentin q view ulong 5 c edit uint * to ulong */
121uint32_t omega2_sentin(uint64_t *result, const uint64_t *o_q, uint64_t o_q_len, uint32_t *o_c, uint64_t o_c_len);
122#define OMEGA2_IDENT_bw_identity "omega-ident 1 unit=bw_identity abi=2 profile=OM-2 src=a051f55c6ffb24fc2c42d6181b1ca12db07611bd40939231bd5f5193c83a63ba omc=be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a"
123const char *omega2_ident_bw_identity(void);
124/* fn bw_id_native data view uchar 256 n ulong dst edit uchar 32 to long */
125uint32_t omega2_bw_id_native(uint64_t *result, const uint8_t *o_data, uint64_t o_data_len, uint64_t o_n, uint8_t *o_dst, uint64_t o_dst_len);
126#ifdef __cplusplus
127}
128#endif
129#endif