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/evidence/attention-views/2026-11-06/omega_attn_views.h.gcov # 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 / evidence / attention-views / 2026-11-06 / omega_attn_views.h.gcov` 224 lines · 10532 bytes Raw Blame History 1 -: 0:Source:src/omega_attn_views.h 2 -: 0:Graph:~/work/cudastack/lanes/ApiViewsAttn/build/attn-views-qualified-final/cases-oracle.gcno 3 -: 0:Data:~/work/cudastack/lanes/ApiViewsAttn/build/attn-views-qualified-final/cases-oracle.gcda 4 -: 0:Runs:9 5 -: 1:/* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */ 6 -: 2:#ifndef OMEGA_ATTN_VIEWS_H 7 -: 3:#define OMEGA_ATTN_VIEWS_H 8 -: 4:#include "cudapp_native.h" 9 -: 5:#include 10 -: 6:#include 11 -: 7:#include 12 -: 8:#ifndef CUDAPP_MIGRATION_PENDING_ATTN_VIEWS 13 -: 9:#define CUDAPP_MIGRATION_PENDING_ATTN_VIEWS 0 14 -: 10:#endif 15 -: 11:/* Only native pointers/counts cross this boundary. All data walks are Omega. 16 -: 12: * The C oracle is default-OFF and exists solely for differential/coverage gates. */ 17 function av_args called 32 returned 100% blocks executed 100% 18 32: 13:static inline int av_args(uint32_t a[32],const uint64_t p[32],uint64_t na,uint64_t nw) { 19 -: 14:#if CUDAPP_MIGRATION_PENDING_ATTN_VIEWS 20 32: 15: if(na>16 || nw>32 || 2*na>nw)return 1; 21 branch 0 taken 24 (fallthrough) 22 branch 1 taken 8 23 branch 2 taken 16 (fallthrough) 24 branch 3 taken 8 25 branch 4 taken 8 (fallthrough) 26 branch 5 taken 8 27 8: 16: memset(a,0,32*sizeof *a); 28 80: 17: for(uint64_t i=0;i>32);} 29 branch 0 taken 72 30 branch 1 taken 8 (fallthrough) 31 64: 18: for(uint64_t i=0;i>i)&1){if(i==31)return 1;a[i+1]=(uint32_t)(p[i]>>32);i++;}}return 0; 42 branch 0 taken 72 (fallthrough) 43 branch 1 taken 376 44 branch 2 taken 8 (fallthrough) 45 branch 3 taken 64 46 branch 4 taken 448 47 branch 5 taken 8 (fallthrough) 48 -: 26:#else 49 -: 27: uint64_t r=1;return omega_av_lay(&r,p,32,a,32,mask)!=OMEGA_OK || r!=0; 50 -: 28:#endif 51 -: 29:} 52 function av_memcpy called 24 returned 100% blocks executed 100% 53 24: 30:static inline void *av_memcpy(void *d,const void *s,size_t n) { 54 -: 31:#if CUDAPP_MIGRATION_PENDING_ATTN_VIEWS 55 24: 32: return memcpy(d,s,n); 56 -: 33:#else 57 -: 34: if(d==s)return d; 58 -: 35: uint64_t r=0; 59 -: 36: if(omega_av_copy(&r,s,n,d,n,n)!=OMEGA_OK || r)__builtin_trap(); 60 -: 37: return d; 61 -: 38:#endif 62 -: 39:} 63 function av_memset called 32 returned 100% blocks executed 100% 64 32: 40:static inline void *av_memset(void *d,int v,size_t n) { 65 -: 41:#if CUDAPP_MIGRATION_PENDING_ATTN_VIEWS 66 32: 42: return memset(d,v,n); 67 -: 43:#else 68 -: 44: uint64_t r=0;if(omega_av_set(&r,d,n,n,(uint8_t)v)!=OMEGA_OK || r)__builtin_trap();return d; 69 -: 45:#endif 70 -: 46:} 71 function av_fill32 called 16 returned 100% blocks executed 100% 72 16: 47:static inline void av_fill32(uint32_t *d,size_t n,uint32_t v) { 73 -: 48:#if CUDAPP_MIGRATION_PENDING_ATTN_VIEWS 74 `16000064`: 49: for(size_t i=0;i=0)d[r++]=(uint32_t)s[i]; 154 branch 0 taken `5333344` (fallthrough) 155 branch 1 taken `2666680` 156 branch 2 taken `8000024` 157 branch 3 taken 8 (fallthrough) 158 -: 106:#else 159 -: 107: if(omega_av_comp(&r,s,n,d,n,n)!=OMEGA_OK)__builtin_trap(); 160 -: 108:#endif 161 8: 109: return (size_t)r; 162 -: 110:} 163 function av_routerpoison called 16 returned 100% blocks executed 100% 164 16: 111:static inline size_t av_routerpoison(const float *w,const uint32_t *ids,size_t n,float pv,uint32_t pi) { 165 16: 112: uint64_t r=0; 166 -: 113:#if CUDAPP_MIGRATION_PENDING_ATTN_VIEWS 167 `16000064`: 114: for(size_t i=0;i=limit; 197 branch 0 taken `8000024` 198 branch 1 taken 8 (fallthrough) 199 -: 134:#else 200 -: 135: if(omega_av_bids(&r,s,n,n,limit)!=OMEGA_OK)__builtin_trap(); 201 -: 136:#endif 202 8: 137: return (size_t)r; 203 -: 138:} 204 function av_rowtab called 16 returned 100% blocks executed 100% 205 16: 139:static inline void av_rowtab(uint32_t *d,size_t n,uint64_t base) { 206 -: 140:#if CUDAPP_MIGRATION_PENDING_ATTN_VIEWS 207 64: 141: for(size_t i=0;i0?(uint32_t)s[i]:0; 218 branch 0 taken 64 219 branch 1 taken 8 (fallthrough) 220 -: 149:#else 221 -: 150: uint64_t r=0;if(omega_av_ctx(&r,s,n,d,n,n)!=OMEGA_OK || r)__builtin_trap(); 222 -: 151:#endif 223 8: 152:} 224 -: 153:#endif