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:
parent
f119f581a1
commit
3723a937e3
1 changed files with 5 additions and 5 deletions
10
Makefile
10
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue