You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add GB200 aarch64 support improvements to CUDA installation script (#104) (#173)
Summary:
- Add `--arch` flag to explicitly specify target architecture (`x86_64`, `aarch64`, `arm64`), enabling cross-compilation and container builds targeting GB200/Grace Hopper from x86_64 hosts
- Add `--help` / `-h` flag with comprehensive usage documentation, examples for both x86_64 and aarch64, and environment variable reference
- Add `CUDA_RUNFILE_SBSA` associative array for architecture-specific runfile overrides, allowing different driver versions when NVIDIA ships distinct runfiles for sbsa platforms
- Add `validate_download_url()` pre-flight check to verify CUDA runfile availability before starting multi-GB downloads, with clear error messages for missing sbsa runfiles
- Refactor architecture detection into reusable `resolve_arch()` function that validates supported architectures and can be re-invoked after `--arch` override
- Display architecture information (`TARGETARCH` + `ARCH_PATH`) in the installation summary output
Pull Request resolved: #173
Test Plan:
- [ ] Verify `--help` flag prints usage information and exits cleanly
- [ ] Verify `--arch aarch64` sets `ARCH_PATH` to `sbsa` and selects the correct sbsa runfile
- [ ] Verify `--arch x86_64` works as expected on an x86_64 host
- [ ] Verify `--arch invalid_arch` produces a clear error message
- [ ] Verify `TARGETARCH=aarch64 ./install_cuda.sh 12.8` still works (env var path)
- [ ] Verify URL pre-validation catches unavailable runfiles before downloading
- [ ] Verify the installation summary includes architecture information
- [ ] Test full installation on an aarch64/sbsa system (GB200 or Grace Hopper)
Reviewed By: peiying779
Differential Revision: D97562180
Pulled By: FindHao
fbshipit-source-id: a0ddf2286ceea620dafd1f89df74e711dde018b7
0 commit comments