From 14edb57cd4c59405083c2f1fb205d4119914e299 Mon Sep 17 00:00:00 2001 From: "russell@unturf.com" Date: Fri, 5 Jun 2026 08:34:43 -0400 Subject: [PATCH] make gpu-worker: default to C tier MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit C tier is ~10× faster than Python tier on wire orchestration & has the same primitives shipped this session. Python tier still available for development debugging via LUMBDA=python; asm via LUMBDA=asm. Auto-builds the chosen tier (c-build or asm-build) before launching so a fresh clone runs cleanly without 'make c-build && make gpu-worker' two-step. Web page Start-a-GPU-worker subsection updated to match. --- Makefile | 12 +++++++----- www/index.html | 7 ++++--- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index a44f4ae..8416f23 100644 --- a/Makefile +++ b/Makefile @@ -195,7 +195,7 @@ friction: c-build asm-build GPU_WORKER_DIR := examples/cuda-fanout PORT ?= 9091 -LUMBDA ?= python +LUMBDA ?= c gpu-worker-bin: $(MAKE) -C $(GPU_WORKER_DIR) shake256-fanout @@ -203,14 +203,16 @@ gpu-worker-bin: gpu-worker: gpu-worker-bin @echo "→ launching gpu-worker.lsp on port $(PORT) ($(LUMBDA) tier)" @printf '(load "wire.lsp")\n(load "gpu-worker.lsp")\n(main)\n' > $(GPU_WORKER_DIR)/launch.lsp -ifeq ($(LUMBDA),python) - cd $(GPU_WORKER_DIR) && python3 -u ../../lumbda.py launch.lsp --port $(PORT) -else ifeq ($(LUMBDA),c) +ifeq ($(LUMBDA),c) + $(MAKE) c-build cd $(GPU_WORKER_DIR) && ../../c/lumbda launch.lsp --port $(PORT) +else ifeq ($(LUMBDA),python) + cd $(GPU_WORKER_DIR) && python3 -u ../../lumbda.py launch.lsp --port $(PORT) else ifeq ($(LUMBDA),asm) + $(MAKE) asm-build cd $(GPU_WORKER_DIR) && ../../asm/lumbda-gc launch.lsp --port $(PORT) else - @echo "LUMBDA=$(LUMBDA) — expected python | c | asm"; exit 2 + @echo "LUMBDA=$(LUMBDA) — expected c | python | asm"; exit 2 endif gpu-worker-test: gpu-worker-bin diff --git a/www/index.html b/www/index.html index a79fb21..4f68675 100644 --- a/www/index.html +++ b/www/index.html @@ -67,11 +67,12 @@ make test-all
# On any host with nvcc + a CUDA-capable GPU:
 make gpu-worker
 # → builds examples/cuda-fanout/shake256-fanout
-# → launches gpu-worker.lsp on port 9091 (Python tier)
+# → builds the C tier (~10× faster wire orchestration than Python)
+# → launches gpu-worker.lsp on port 9091
 
 # Override tier or port:
-make gpu-worker LUMBDA=c PORT=9001
-make gpu-worker LUMBDA=asm
+make gpu-worker LUMBDA=python PORT=9001 # easier debugging +make gpu-worker LUMBDA=asm # smallest footprint

Call it from any tier

;; bend works on every tier — Python, C, asm — through the same