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 / 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. */
7enum {
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};
12typedef 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. */
19int 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);
22void omega_native_artifact_snapshot_free(OmegaNativeArtifactSnapshot *snapshot);
23#endif