interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / src / omega_blackwell_realize.h

51 lines · 1828 bytes Raw Blame History
1/* SPDX-License-Identifier: Apache-2.0
2 * Copyright 2026 Drake Stapleton (AIEN / aien-dev)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef OMEGA_BLACKWELL_REALIZE_H
18#define OMEGA_BLACKWELL_REALIZE_H
19
20#include "omega_types.h"
21#include "omega_vector.h"
22#include "omega_blackwell_qmd.h"
23#include "omega_blackwell_encoder.h"
24#include <stdbool.h>
25#include <stddef.h>
26#include <stdint.h>
27
28#define OMEGA_BW_SM_ARCH_121 121
29
30typedef struct {
31 SemanticId realization_id;
32 SemanticId spec_id;
33 SemanticId machine_id;
34 uint32_t sm_architecture;
35 size_t code_len;
36 uint8_t code_digest[32];
37 uint8_t realization_digest[32];
38 OmegaBlackwellQmdConfig qmd_cfg;
39} OmegaBlackwellRealization;
40
41/* Machine PROFILE digest for the Blackwell GB10 SM target (same on every GB10).
42 * Not a machine identity: see AienMachineId (src/runtime/aien_machine_id.h). */
43int omega_blackwell_get_machine_id(SemanticId *out_machine_id);
44
45/* Bind an OmegaVectorSpec to Blackwell sm_121 hardware realization */
46int omega_blackwell_realize_vector(const OmegaVectorSpec *spec, OmegaBlackwellRealization *out_real);
47
48/* Compute triple hash realization ID: SHA-256(spec_id || machine_id || code_digest) */
49int omega_blackwell_realization_compute_id(OmegaBlackwellRealization *real);
50
51#endif /* OMEGA_BLACKWELL_REALIZE_H */