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

38 lines · 1510 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_CODEGEN_PF_H
18#define OMEGA_BLACKWELL_CODEGEN_PF_H
19/*
20 * omega_blackwell_codegen_pf: small device-resident kernels for the OWN-30B one-pass prefill (T3b, 2026-10-13). New file.
21 *
22 * copy: dst[i] = src[i] for i < units (16-byte units). One thread per unit, grid_x = ceil(units / threads).
23 * Arguments (cbank + 0x380): dst u64, src u64, units u32. Used to fill GPU-cached (device-private) buffers from an
24 * uncached staging buffer and to read them back: every write to a cached buffer is a GPU write, so the GPU L2 can never
25 * hold a stale line of it (nvos.h:1116, omega_gpu_devmem.h).
26 */
27#include <stdint.h>
28#include "omega_blackwell_codegen.h"
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33#define OMEGA_PF_COPY_THREADS 256u
34int omega_blackwell_codegen_pf_copy_prog(BlackwellIRProgram *prog);
35#ifdef __cplusplus
36}
37#endif
38#endif