Skip to content

feat(make): auto-detect profile (apple/cpu/nvidia) for make up#14

Merged
oldhero5 merged 1 commit into
mainfrom
feat/makefile-profile-autodetect
May 24, 2026
Merged

feat(make): auto-detect profile (apple/cpu/nvidia) for make up#14
oldhero5 merged 1 commit into
mainfrom
feat/makefile-profile-autodetect

Conversation

@oldhero5

Copy link
Copy Markdown
Owner

Summary

  • Default Makefile PROFILE now distinguishes Linux+NVIDIA from CPU/WSL hosts: Darwin -> apple, Linux/WSL with nvidia-smi on $PATH -> nvidia, otherwise -> cpu. Previously every non-Darwin host silently fell back to apple, so make up on a Linux NVIDIA box ran CPU workers.
  • Drops the unused BACKEND variable; up dispatches directly off UNAME_S to up-mac (Darwin) or up-linux (everywhere else).
  • Adds the new cpu profile to docker-compose.yml on waldo-labeler / waldo-trainer while retaining the existing apple profile as an alias for one release so make up PROFILE=apple keeps working.
  • Updates install.sh so WALDO_GPU=none maps to WALDO_PROFILE=cpu (was apple); apple is now reserved for actual Apple Silicon.
  • Documents the three profiles + auto-detect in README.md and docs-site/docs/deployment/docker.md.

Closes #11

Test plan

  • docker compose --profile cpu config validates and includes waldo-labeler / waldo-trainer.
  • docker compose --profile apple config validates and includes the same two services (alias).
  • docker compose --profile nvidia config validates and includes waldo-labeler-nvidia / waldo-trainer-nvidia only.
  • make -n up in a container without nvidia-smi resolves to --profile cpu.
  • make -n up PROFILE=nvidia and PROFILE=apple overrides still produce the expected --profile <X> invocations.
  • CI green.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

Default `PROFILE` in the Makefile now distinguishes Linux+NVIDIA from
Linux/CPU/WSL hosts: Darwin -> apple, Linux/WSL with nvidia-smi on $PATH ->
nvidia, otherwise -> cpu. Previously every non-Darwin host silently fell
back to apple, so `make up` on a Linux NVIDIA box ran CPU workers.

Also drops the unused BACKEND variable, dispatches `up` directly off
UNAME_S, adds the new `cpu` profile to docker-compose.yml (alongside the
retained `apple` alias for one release), maps install.sh's WALDO_GPU=none
to WALDO_PROFILE=cpu, and updates README.md + docs-site/docs/deployment/docker.md
to document the three profiles and the auto-detect.

Closes #11

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@oldhero5
oldhero5 merged commit 9fed72c into main May 24, 2026
1 check passed
@oldhero5
oldhero5 deleted the feat/makefile-profile-autodetect branch May 24, 2026 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Default Makefile PROFILE on Linux: split apple/cpu/nvidia

1 participant