Skip to content

Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦

C

Makefile: opt-in NVCC_CCBIN=<compiler> to override nvcc's host compiler (fixes #211)

JustVuggbad64d1b06cb
diff --git a/c/Makefile b/c/Makefile
index f779d945..c9b7fc3e 100644
--- a/c/Makefile
+++ b/c/Makefile
@@ -114,6 +114,11 @@ ifneq ($(IS_WIN),)
# directory too is symmetric. The installer adds it by default.
CUDA_HOME ?= $(subst \,/,$(CUDA_PATH))
NVCC ?= nvcc
+# Host compiler override for nvcc (e.g. Fedora ships g++16 but CUDA needs 15):
+# make glm CUDA=1 NVCC_CCBIN=g++-15 (opt-in: unset = nvcc's own default)
+ifneq ($(NVCC_CCBIN),)
+NVCCFLAGS += -ccbin $(NVCC_CCBIN)
+endif
else
CUDA_HOME ?= /usr/local/cuda
NVCC ?= $(CUDA_HOME)/bin/nvcc