nx_hwagnostic_research.nx source
↩ module page · 47 lines · 3540 B
1// nx_hwagnostic_research.nx -- THIN structured HARDWARE-AGNOSTIC-GPU research source organ. COMPOSES
2// nx_research_engine (shared fetch->extract->bank); declares the sources grouped under descriptive SECTIONS with
3// purpose -- structured nishi knowledge, NOT a flat TSV, NO copy-pasted fetch loop. Supersedes both
4// nx_hwagnostic_research_fetch (the copy-pasted organ) and knowledge/research/sources/hwagnostic.tsv.
5// expect_exit: 0 license_tier: ORIGINAL
6import "nx_research_engine.nx"
7const K_MAGIC_8388608: i64 = 8388608
8
9func main() -> i64 {
10 let store: *TrustStore = rf_init()
11 if (store as i64) == 0 { rf_puts("hwagnostic: trust store load failed\n" as *u8); return 1 }
12 rf_puts("CA roots="); rf_putn(trust_store_count(store)); rf_puts(" -- HARDWARE-AGNOSTIC GPU research -> Library\n" as *u8)
13 let cap: i64 = K_MAGIC_8388608
14 let out: *u8 = sys_mmap(cap)
15 var ok: i64 = 0
16
17 rf_section("INCUMBENT + LOCK (what hardware-agnostic must displace)" as *u8)
18 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/CUDA" as *u8, "hwag_cuda" as *u8, store, out, cap)
19
20 rf_section("OPEN DRIVERS (reach NVIDIA silicon WITHOUT the proprietary UMD)" as *u8)
21 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Nouveau_(software)" as *u8, "hwag_nouveau" as *u8, store, out, cap)
22 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Mesa_(computer_graphics)" as *u8, "hwag_mesa" as *u8, store, out, cap)
23 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Direct_Rendering_Manager" as *u8, "hwag_drm" as *u8, store, out, cap)
24
25 rf_section("CROSS-VENDOR COMPUTE APIs (hardware-agnostic by abstraction)" as *u8)
26 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/OpenCL" as *u8, "hwag_opencl" as *u8, store, out, cap)
27 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/SYCL" as *u8, "hwag_sycl" as *u8, store, out, cap)
28 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/WebGPU" as *u8, "hwag_webgpu" as *u8, store, out, cap)
29
30 rf_section("OPEN COMPUTE STACK (AMD's more-open route)" as *u8)
31 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/ROCm" as *u8, "hwag_rocm" as *u8, store, out, cap)
32
33 rf_section("SUBSTRATE (direct hardware access -- the passthrough enabler)" as *u8)
34 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/IOMMU" as *u8, "hwag_iommu" as *u8, store, out, cap)
35
36 rf_section("CANONICAL PRIMARY (the codebases that reach the GPU WITHOUT CUDA)" as *u8)
37 ok = ok + rf_fetch_bank("https://raw.githubusercontent.com/tinygrad/tinygrad/master/README.md" as *u8, "hwag_tinygrad_readme" as *u8, store, out, cap)
38 ok = ok + rf_fetch_bank("https://raw.githubusercontent.com/NVIDIA/open-gpu-kernel-modules/main/README.md" as *u8, "hwag_nvopen_readme" as *u8, store, out, cap)
39
40 rf_section("LLM-EFFICIENCY INCUMBENTS + DETERMINISM FRONTIER (the benchmark targets to s-class-exceed)" as *u8)
41 ok = ok + rf_fetch_bank("https://raw.githubusercontent.com/thinking-machines-lab/batch_invariant_ops/main/README.md" as *u8, "hwag_batchinvariant" as *u8, store, out, cap)
42 ok = ok + rf_fetch_bank("https://raw.githubusercontent.com/vllm-project/vllm/main/README.md" as *u8, "hwag_vllm" as *u8, store, out, cap)
43 ok = ok + rf_fetch_bank("https://raw.githubusercontent.com/Dao-AILab/flash-attention/main/README.md" as *u8, "hwag_flashattn" as *u8, store, out, cap)
44
45 rf_puts("HWAGNOSTIC BANKED: "); rf_putn(ok); rf_puts(" / 14 (sections preserved, gzip-guarded; run nx_library_harvest_v2 to index)\n" as *u8)
46 return 0
47}