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_gpu_resident.c

12 lines · 696 bytes Raw Blame History
1/* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */
2/* Internal memory shell: widen descriptor words; all admission and IR decisions are Omega. */
3#include "omega_gpu_resident.h"
4#include "cudapp_native.h"
5int omega_gpu_resident_build(const uint32_t *descs, uint64_t n, uint64_t size, uint64_t ctas,
6 BlackwellIRProgram *p, uint64_t *err) {
7 uint64_t d[512]={0}, result=1;
8 if(!descs || !p) return OMEGA_OM_IR_REFUSED;
9 for(uint64_t i=0;i<512 && i/8<n;i++) d[i]=descs[i];
10 if(omega_resident_check(&result,d,512,n,size,ctas)!=OMEGA_OK || result) return OMEGA_OM_IR_REFUSED;
11 return omega_gpu_om_ir_replay(omega_resident,0,n,size,ctas,p,err);
12}