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_native_artifact_snapshot.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_native_artifact_snapshot.h` 23 lines · 1122 bytes Raw Blame History 1 /* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */ 2 #ifndef OMEGA_NATIVE_ARTIFACT_SNAPSHOT_H 3 #define OMEGA_NATIVE_ARTIFACT_SNAPSHOT_H 4 #include "omega_native_artifact.h" 5 /* Private I/O custody only. These are exactly the bytes checked by existing 6 * admission, retained without reopening paths. Not qualification authority. */ 7 enum { 8 OMEGA_SNAPSHOT_MANIFEST, OMEGA_SNAPSHOT_TEXT, OMEGA_SNAPSHOT_CUBIN, 9 OMEGA_SNAPSHOT_QMD0, OMEGA_SNAPSHOT_QMD1, OMEGA_SNAPSHOT_CBANK, 10 OMEGA_SNAPSHOT_FILES 11 }; 12 typedef struct { 13 uint8_t *bytes[OMEGA_SNAPSHOT_FILES]; 14 size_t sizes[OMEGA_SNAPSHOT_FILES]; 15 char kernel_function[64], id[OMEGA_ARTIFACT_ID_MAX]; 16 } OmegaNativeArtifactSnapshot; 17 /* out must be empty; on success owns buffers until snapshot_free. On failure 18 * remains empty. No changed file can replace the retained checked bytes. */ 19 int omega_native_artifact_snapshot(const char *prefix, const char *driver, 20 char out_id[OMEGA_ARTIFACT_ID_MAX], OmegaNativeArtifactSnapshot *out, 21 char *err, size_t err_cap); 22 void omega_native_artifact_snapshot_free(OmegaNativeArtifactSnapshot *snapshot); 23 #endif