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/tests/attn_views_bench.c # 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 / tests / attn_views_bench.c` 38 lines · 1657 bytes Raw Blame History 1 /* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */ 2 #define _POSIX_C_SOURCE 200809L 3 #include "omega_attn_tables.h" 4 #include 5 #include 6 #ifndef AV_BENCH 7 #error AV_BENCH must name the timing entry 8 #endif 9 uint64_t AV_BENCH(unsigned op,size_t n,unsigned rounds){ 10 unsigned char *s=malloc(n*4+2048),*d=malloc(n*4+4096); 11 if(!s||!d)abort(); 12 for(size_t i=0;i