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_blackwell_realize.h

36 lines · 1236 bytes Raw Blame History
1/* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */
2#ifndef OMEGA_BLACKWELL_REALIZE_H
3#define OMEGA_BLACKWELL_REALIZE_H
4
5#include "omega_types.h"
6#include "omega_vector.h"
7#include "omega_blackwell_qmd.h"
8#include "omega_blackwell_encoder.h"
9#include <stdbool.h>
10#include <stddef.h>
11#include <stdint.h>
12
13#define OMEGA_BW_SM_ARCH_121 121
14
15typedef struct {
16 SemanticId realization_id;
17 SemanticId spec_id;
18 SemanticId machine_id;
19 uint32_t sm_architecture;
20 size_t code_len;
21 uint8_t code_digest[32];
22 uint8_t realization_digest[32];
23 OmegaBlackwellQmdConfig qmd_cfg;
24} OmegaBlackwellRealization;
25
26/* Machine PROFILE digest for the Blackwell GB10 SM target (same on every GB10).
27 * Not a machine identity: see AienMachineId (src/runtime/aien_machine_id.h). */
28int omega_blackwell_get_machine_id(SemanticId *out_machine_id);
29
30/* Bind an OmegaVectorSpec to Blackwell sm_121 hardware realization */
31int omega_blackwell_realize_vector(const OmegaVectorSpec *spec, OmegaBlackwellRealization *out_real);
32
33/* Compute triple hash realization ID: SHA-256(spec_id || machine_id || code_digest) */
34int omega_blackwell_realization_compute_id(OmegaBlackwellRealization *real);
35
36#endif /* OMEGA_BLACKWELL_REALIZE_H */