[PR #3557] [CLOSED] setup.sh: fail fast with a clear message on non-x86_64 (ARM) before downloading #4688

Closed
opened 2026-11-07 15:38:20 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • e23c298 setup.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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/3557 **Author:** [@hernandez42](https://github.com/hernandez42) **Created:** 10/21/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/arm-arch-guard` --- ### 📝 Commits (1) - [`e23c298`](https://github.com/Niko1221/Strata/commit/e23c2987bdbbcb88e8b01135c8e8f21645d2ccb3) setup.sh: fail fast with a clear message on non-x86_64 (ARM etc.) architectures ### 📊 Changes **1 file changed** (+11 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `setup.sh` (+11 -1) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:38:20 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4688
No description provided.