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
CUDApp / src / omega_blackwell_codegen_pf.h
| 1 | /* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */ |
| 2 | #ifndef OMEGA_BLACKWELL_CODEGEN_PF_H |
| 3 | #define OMEGA_BLACKWELL_CODEGEN_PF_H |
| 4 | /* |
| 5 | * omega_blackwell_codegen_pf: small device-resident kernels for the OWN-30B one-pass prefill (T3b, 2026-10-13). New file. |
| 6 | * |
| 7 | * copy: dst[i] = src[i] for i < units (16-byte units). One thread per unit, grid_x = ceil(units / threads). |
| 8 | * Arguments (cbank + 0x380): dst u64, src u64, units u32. Used to fill GPU-cached (device-private) buffers from an |
| 9 | * uncached staging buffer and to read them back: every write to a cached buffer is a GPU write, so the GPU L2 can never |
| 10 | * hold a stale line of it (nvos.h:1116, omega_gpu_devmem.h). |
| 11 | */ |
| 12 | #include <stdint.h> |
| 13 | #include "omega_blackwell_codegen.h" |
| 14 | |
| 15 | #ifdef __cplusplus |
| 16 | extern "C" { |
| 17 | #endif |
| 18 | #define OMEGA_PF_COPY_THREADS 256u |
| 19 | int omega_blackwell_codegen_pf_copy_prog(BlackwellIRProgram *prog); |
| 20 | int omega_blackwell_codegen_pf_copy_prog_c(BlackwellIRProgram *prog); |
| 21 | int omega_cg_pf_copy_from_omega(BlackwellIRProgram *prog, int mutant); |
| 22 | #ifdef __cplusplus |
| 23 | } |
| 24 | #endif |
| 25 | #endif |