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 / evidence / ATTN-GENERAL-20261027-4d51f91f / attn_digests.c.txt
| 1 | /* throwaway: print sha256 of every tuned attention kernel (hd 64/128, f32/bf16, log2bs 0..8, log2gqa 0..6) */ |
| 2 | #include <stdio.h> |
| 3 | #include <stdlib.h> |
| 4 | #include <string.h> |
| 5 | #include "omega_gpu_attention_api.h" |
| 6 | int main(void) { |
| 7 | for (unsigned hd = 64; hd <= 128; hd += 64) |
| 8 | for (int f = 0; f < 2; f++) |
| 9 | for (unsigned bs = 0; bs <= 8; bs++) |
| 10 | for (unsigned g = 0; g <= 6; g++) { |
| 11 | OmegaBlackwellKernel k; memset(&k, 0, sizeof k); |
| 12 | int rc = omega_gpu_attention_codegen_hd(f, bs, g, hd, &k); |
| 13 | printf("hd%u %s bs%u gqa%u rc=%d insns=%zu ", hd, f ? "f32" : "bf16", bs, g, rc, k.insn_count); |
| 14 | if (rc == 0) for (int i = 0; i < 32; i++) printf("%02x", k.code_digest[i]); |
| 15 | printf("\n"); |
| 16 | free(k.code); |
| 17 | } |
| 18 | return 0; |
| 19 | } |