Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/src/omega_blackwell_codegen_pf.h # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / src / omega_blackwell_codegen_pf.h` 25 lines · 1059 bytes Raw Blame History 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 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