Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/src/omega_runtime_api.h # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / src / omega_runtime_api.h` 26 lines · 1881 bytes Raw Blame History 1 /* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */ 2 #ifndef OMEGA_RUNTIME_API_H 3 #define OMEGA_RUNTIME_API_H 4 /* 5 * Omega Runtime API version (R1, omega-mv#594). Defines the version and one function that reports it; includes nothing. 6 * 7 * The API is the set of entries listed in docs/runtime/omega_runtime_api.manifest and described in 8 * docs/runtime/API.md, which also states the compatibility rule (semantic versioning, MAJOR.MINOR.PATCH): 9 * MAJOR goes up when a STABLE entry is removed, renamed or changes signature, layout, constant value or 10 * documented behaviour; MINOR goes up when an entry is added or an EXPERIMENTAL entry changes or goes; 11 * PATCH goes up for a fix that changes no manifest entry. MAJOR 0 is the first, written-down version; while MAJOR 12 * is 0 a change that would need MAJOR needs a MINOR bump instead (semver 2.0.0 item 4; API.md section 2). 13 * tools/runtime_api_check.sh (make test-runtime-api) fails when this header, the manifest and API.md disagree, and 14 * tools/runtime_api_semver.sh fails when the manifest changed without the bump the rule asks for. 15 */ 16 #define OMEGA_RUNTIME_API_VERSION_MAJOR 0 17 #define OMEGA_RUNTIME_API_VERSION_MINOR 18 18 #define OMEGA_RUNTIME_API_VERSION_PATCH 0 19 /* One number for #if comparisons: (MAJOR << 16) | MINOR. PATCH is left out: it never changes the surface. */ 20 #define OMEGA_RUNTIME_API_VERSION ((OMEGA_RUNTIME_API_VERSION_MAJOR << 16) | OMEGA_RUNTIME_API_VERSION_MINOR) 21 /* OMEGA_RUNTIME_API_VERSION of the library that was linked (added in 0.14.0). A program compares it with the 22 * OMEGA_RUNTIME_API_VERSION it was compiled against: the library serves the program when MAJOR is equal and the library's 23 * MINOR is at least the program's; while MAJOR is 0 a MINOR bump may break callers, so MINOR must be equal too 24 * (API.md section 2). */ 25 unsigned int omega_runtime_api_version(void); 26 #endif