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 / platform-linux / gen / plat_effects.h
| 1 | /* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */ |
| 2 | /* Generated by om/platform-linux/gen_effects.sh; do not edit. */ |
| 3 | #ifndef CUDAPP_PLAT_plat_effects_H |
| 4 | #define CUDAPP_PLAT_plat_effects_H |
| 5 | #include <stdint.h> |
| 6 | #if defined(__aarch64__) |
| 7 | /* Generated by omega-bridge src/native.om: native call ABI v1 (docs/NATIVE-ABI.md). |
| 8 | * C and C++ declarations for libomega_native. Regenerate it; do not edit it. |
| 9 | * Status: 0 done; 1..14 the Omega trap code; 32 argument refused (null, wrong length, misaligned, |
| 10 | * overlap); 33 reentry; 34 bad runtime entry; 35 no stack. The result is written only on status 0. |
| 11 | * A long is its two's-complement bits; an array is its address then its element count. |
| 12 | * Parameter names carry o_ so no language's reserved words collide. */ |
| 13 | #ifndef OMEGA_NATIVE_H |
| 14 | #define OMEGA_NATIVE_H |
| 15 | #include <stdint.h> |
| 16 | #ifdef __cplusplus |
| 17 | extern "C" { |
| 18 | #endif |
| 19 | #define OMEGA_OK 0u |
| 20 | #define OMEGA_BAD_ARG 32u |
| 21 | #define OMEGA_REENTRY 33u |
| 22 | #define OMEGA_BAD_RT 34u |
| 23 | #define OMEGA_NO_STACK 35u |
| 24 | #ifndef OMEGA_NATIVE_CONTEXT_DECL |
| 25 | #define OMEGA_NATIVE_CONTEXT_DECL |
| 26 | #define OMEGA_CONTEXT_BUSY 36u |
| 27 | typedef struct omega_native_context omega_native_context; |
| 28 | uint32_t omega_native_context_create(uint64_t capacity, omega_native_context **out); |
| 29 | uint32_t omega_native_context_destroy(omega_native_context *context); |
| 30 | #endif |
| 31 | #define OMEGA2_IDENT_plat_effects "omega-ident 1 unit=plat_effects abi=2 profile=OM-2 src=50f1a64494248ffe9b92cafaf704fbe4ba647849b0ab9d906ea221ec941fbdcc omc=d1a3047153e14676c4baf9248fa2b88bb1b68c37cfeb71d76f30f5230c7d2765 host=mapwrite" |
| 32 | const char *omega2_ident_plat_effects(void); |
| 33 | /* export fn plat_fence to long */ |
| 34 | uint32_t omega2_plat_fence(uint64_t *result); |
| 35 | /* export fn plat_fence to long */ |
| 36 | uint32_t omega2_ctx_plat_fence(omega_native_context *context, uint64_t *result); |
| 37 | /* export fn plat_ring_store dst edit uchar * bytes view uchar * n ulong to long */ |
| 38 | uint32_t omega2_plat_ring_store(uint64_t *result, uint8_t *o_dst, uint64_t o_dst_len, const uint8_t *o_bytes, uint64_t o_bytes_len, uint64_t o_n); |
| 39 | /* export fn plat_ring_store dst edit uchar * bytes view uchar * n ulong to long */ |
| 40 | uint32_t omega2_ctx_plat_ring_store(omega_native_context *context, uint64_t *result, uint8_t *o_dst, uint64_t o_dst_len, const uint8_t *o_bytes, uint64_t o_bytes_len, uint64_t o_n); |
| 41 | /* export fn plat_map_store handle long off ulong bytes view uchar * n ulong to long */ |
| 42 | uint32_t omega2_plat_map_store(uint64_t *result, uint64_t o_handle, uint64_t o_off, const uint8_t *o_bytes, uint64_t o_bytes_len, uint64_t o_n); |
| 43 | /* export fn plat_map_store handle long off ulong bytes view uchar * n ulong to long */ |
| 44 | uint32_t omega2_ctx_plat_map_store(omega_native_context *context, uint64_t *result, uint64_t o_handle, uint64_t o_off, const uint8_t *o_bytes, uint64_t o_bytes_len, uint64_t o_n); |
| 45 | #ifdef __cplusplus |
| 46 | } |
| 47 | #endif |
| 48 | #endif |
| 49 | |
| 50 | #elif defined(__x86_64__) |
| 51 | /* Generated by omega-bridge src/native.om: native call ABI v1 (docs/NATIVE-ABI.md). |
| 52 | * C and C++ declarations for libomega_native. Regenerate it; do not edit it. |
| 53 | * Status: 0 done; 1..14 the Omega trap code; 32 argument refused (null, wrong length, misaligned, |
| 54 | * overlap); 33 reentry; 34 bad runtime entry; 35 no stack. The result is written only on status 0. |
| 55 | * A long is its two's-complement bits; an array is its address then its element count. |
| 56 | * Parameter names carry o_ so no language's reserved words collide. */ |
| 57 | #ifndef OMEGA_NATIVE_H |
| 58 | #define OMEGA_NATIVE_H |
| 59 | #include <stdint.h> |
| 60 | #ifdef __cplusplus |
| 61 | extern "C" { |
| 62 | #endif |
| 63 | #define OMEGA_OK 0u |
| 64 | #define OMEGA_BAD_ARG 32u |
| 65 | #define OMEGA_REENTRY 33u |
| 66 | #define OMEGA_BAD_RT 34u |
| 67 | #define OMEGA_NO_STACK 35u |
| 68 | #ifndef OMEGA_NATIVE_CONTEXT_DECL |
| 69 | #define OMEGA_NATIVE_CONTEXT_DECL |
| 70 | #define OMEGA_CONTEXT_BUSY 36u |
| 71 | typedef struct omega_native_context omega_native_context; |
| 72 | uint32_t omega_native_context_create(uint64_t capacity, omega_native_context **out); |
| 73 | uint32_t omega_native_context_destroy(omega_native_context *context); |
| 74 | #endif |
| 75 | #define OMEGA2_IDENT_plat_effects "omega-ident 1 unit=plat_effects abi=2 profile=OM-2 src=50f1a64494248ffe9b92cafaf704fbe4ba647849b0ab9d906ea221ec941fbdcc omc=cf4fcbbb4752c5dd0652b426c0f2d08f82e380e8fc6f5114acf51a4c077bb579 host=mapwrite" |
| 76 | const char *omega2_ident_plat_effects(void); |
| 77 | /* export fn plat_fence to long */ |
| 78 | uint32_t omega2_plat_fence(uint64_t *result); |
| 79 | /* export fn plat_fence to long */ |
| 80 | uint32_t omega2_ctx_plat_fence(omega_native_context *context, uint64_t *result); |
| 81 | /* export fn plat_ring_store dst edit uchar * bytes view uchar * n ulong to long */ |
| 82 | uint32_t omega2_plat_ring_store(uint64_t *result, uint8_t *o_dst, uint64_t o_dst_len, const uint8_t *o_bytes, uint64_t o_bytes_len, uint64_t o_n); |
| 83 | /* export fn plat_ring_store dst edit uchar * bytes view uchar * n ulong to long */ |
| 84 | uint32_t omega2_ctx_plat_ring_store(omega_native_context *context, uint64_t *result, uint8_t *o_dst, uint64_t o_dst_len, const uint8_t *o_bytes, uint64_t o_bytes_len, uint64_t o_n); |
| 85 | /* export fn plat_map_store handle long off ulong bytes view uchar * n ulong to long */ |
| 86 | uint32_t omega2_plat_map_store(uint64_t *result, uint64_t o_handle, uint64_t o_off, const uint8_t *o_bytes, uint64_t o_bytes_len, uint64_t o_n); |
| 87 | /* export fn plat_map_store handle long off ulong bytes view uchar * n ulong to long */ |
| 88 | uint32_t omega2_ctx_plat_map_store(omega_native_context *context, uint64_t *result, uint64_t o_handle, uint64_t o_off, const uint8_t *o_bytes, uint64_t o_bytes_len, uint64_t o_n); |
| 89 | #ifdef __cplusplus |
| 90 | } |
| 91 | #endif |
| 92 | #endif |
| 93 | |
| 94 | #else |
| 95 | #error "platform omega units require Linux AArch64 or x86-64" |
| 96 | #endif |
| 97 | #endif |