mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3557] [CLOSED] setup.sh: fail fast with a clear message on non-x86_64 (ARM) before downloading #4688
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4688
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/3557
Author: @hernandez42
Created: 10/21/2026
Status: ❌ Closed
Base:
main← Head:feat/arm-arch-guard📝 Commits (1)
e23c298setup.sh: fail fast with a clear message on non-x86_64 (ARM etc.) architectures📊 Changes
1 file changed (+11 additions, -1 deletions)
View changed files
📝
setup.sh(+11 -1)📄 Description
What
Add a fail-fast architecture guard at the top of setup.sh so non-x86_64 machines (NVIDIA Jetson/AGX Xavier, Raspberry Pi, Apple Silicon Linux) get a clear message BEFORE downloading gigabytes of engine + CUDA/HIP wheels and crashing mid-install. Today setup.py only checks x64 via an x86_64-only CPUID stub, so ARM users find out the toolchain is x86_64-only too late.
Why
Strata has no aarch64 build path (all prebuilt engine assets and NVIDIA/AMD wheels are x86_64; aarch64:0 and arm64:0 in setup.py; gpus()/CPUID assume x86_64). This guard turns the confusing late failure into an immediate, actionable message pointing to docs/OLDER_GPUS.md.
Change
POSIX-sh block after cd "$(dirname "$0")":
if [ "$(uname -m)" != "x86_64" ]; then
echo "[X] Strata currently supports x86_64 only (this machine is $(uname -m))."
echo " Prebuilt engine and NVIDIA/AMD wheels are x86_64-only; no aarch64 path yet."
echo " Supported NVIDIA: RTX 20/30/40/50 (older Pascal/Volta via experimental CUDA-12, docs/OLDER_GPUS.md)."
exit 1
fi
Behavior on supported platforms is unchanged.
Test
x86_64 passes; aarch64 prints clear error and exits 1 before any download. Happy to move the check into setup.py if maintainers prefer.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.