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

Merge remote-tracking branch 'upstream/dev' into feat/hip-single-source

noobdev-ph65be434bcbb1
diff --cc c/Makefile
index ede20498,9ba0860a..f40c21c0
--- a/c/Makefile
+++ b/c/Makefile
@@@ -252,10 -225,16 +252,16 @@@ glm: colibri$(EXE
# rewrite it ONLY when they change (evaluated here at parse time, so the file's
# timestamp moves exactly when the config moves). The binary and CUDA/loader objects depend
# on it, so they relink on a config change and stay put otherwise. (#306)
-BUILD_CONFIG := $(CC)|$(CFLAGS)|$(LDFLAGS)|CUDA=$(CUDA)|CUDA_DLL=$(CUDA_DLL)|ARCH=$(ARCH)|CUDA_ARCH=$(CUDA_ARCH)|METAL=$(METAL)
+BUILD_CONFIG := $(CC)|$(CFLAGS)|$(LDFLAGS)|CUDA=$(CUDA)|CUDA_DLL=$(CUDA_DLL)|ARCH=$(ARCH)|CUDA_ARCH=$(CUDA_ARCH)|METAL=$(METAL)|HIP=$(HIP)|HIP_ARCH=$(HIP_ARCH)
BUILD_CONFIG_OLD := $(shell cat .build-config 2>/dev/null)
ifneq "$(BUILD_CONFIG)" "$(BUILD_CONFIG_OLD)"
- $(shell printf '%s' '$(BUILD_CONFIG)' > .build-config)
+ # $(file ...) writes via make's own primitive (GNU Make >= 4.0, 2013), NOT by
+ # spawning a shell. The earlier `$(shell printf '%s' ... > .build-config)`
+ # required a POSIX `printf` on PATH — present under MSYS2/Git-Bash but NOT under
+ # cmd.exe, so `make glm.exe` from the VS Native Tools prompt or with scoop MinGW
+ # (neither ships sh.exe) failed with "'printf' is not recognized" and left the
+ # stamp stale. $(file ...) works regardless of the shell make falls back to. (#478)
+ $(file >.build-config,$(BUILD_CONFIG))
endif
.build-config: ;