Makefile: rename GPU_WORKER_PORT → PORT to match docs

Web docs show `make gpu-worker LUMBDA=c PORT=9001`. Aligning the
variable name to match.
This commit is contained in:
russell@unturf.com 2026-06-05 08:20:16 -04:00
parent f119f581a1
commit 3723a937e3
No known key found for this signature in database

View file

@ -194,21 +194,21 @@ friction: c-build asm-build
# (bend …) to it from the same host or another LAN host.
GPU_WORKER_DIR := examples/cuda-fanout
GPU_WORKER_PORT ?= 9091
PORT ?= 9091
LUMBDA ?= python
gpu-worker-bin:
$(MAKE) -C $(GPU_WORKER_DIR) shake256-fanout
gpu-worker: gpu-worker-bin
@echo "→ launching gpu-worker.lsp on port $(GPU_WORKER_PORT) ($(LUMBDA) tier)"
@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 $(GPU_WORKER_PORT)
cd $(GPU_WORKER_DIR) && python3 -u ../../lumbda.py launch.lsp --port $(PORT)
else ifeq ($(LUMBDA),c)
cd $(GPU_WORKER_DIR) && ../../c/lumbda launch.lsp --port $(GPU_WORKER_PORT)
cd $(GPU_WORKER_DIR) && ../../c/lumbda launch.lsp --port $(PORT)
else ifeq ($(LUMBDA),asm)
cd $(GPU_WORKER_DIR) && ../../asm/lumbda-gc launch.lsp --port $(GPU_WORKER_PORT)
cd $(GPU_WORKER_DIR) && ../../asm/lumbda-gc launch.lsp --port $(PORT)
else
@echo "LUMBDA=$(LUMBDA) — expected python | c | asm"; exit 2
endif