Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦
C
build: close the compute_121 gate when nvcc version is unparsable
monotophic7aaf9d28b45b
diff --git a/c/Makefile b/c/Makefileindex 05db6c29..8b2d3344 100644--- a/c/Makefile+++ b/c/Makefile@@ -211,9 +211,13 @@ CUDA_GENCODE = -gencode arch=compute_80,code=sm_80 \-gencode arch=compute_120,code=sm_120 \-gencode arch=compute_120,code=compute_120NVCC_RELEASE := $(shell "$(NVCC)" --version 2>/dev/null | sed -n 's/.*release \([0-9][0-9]*\.[0-9][0-9]*\).*/\1/p')+# The empty-check makes the fail-closed promise real: with no parsable+# version the sort below would compare 12.9 against itself and pass.+ifneq ($(strip $(NVCC_RELEASE)),)ifeq ($(shell printf '%s\n' 12.9 $(NVCC_RELEASE) | sort -V 2>/dev/null | head -1),12.9)CUDA_GENCODE += -gencode arch=compute_121,code=sm_121endif+endifelseCUDA_GENCODE = -arch=$(CUDA_ARCH)endif