omega-blas
aien-dev/omega-blas
Brought by drakestapleton
omega-blas / tests / netlib / fetch.sh
| 1 | #!/bin/sh |
| 2 | # tests/netlib/fetch.sh <dir>: download and verify netlib LAPACK v3.12.1 (only its BLAS/CBLAS test |
| 3 | # drivers are used, by tests/netlib/run.sh), unpack it under <dir>, print the LAPACK= path. |
| 4 | set -eu |
| 5 | D=${1:?usage: fetch.sh <dir>} |
| 6 | URL=https://github.com/Reference-LAPACK/lapack/archive/refs/tags/v3.12.1.tar.gz |
| 7 | SHA=2ca6407a001a474d4d4d35f3a61550156050c48016d949f0da0529c0aa052422 |
| 8 | mkdir -p "$D" |
| 9 | T=$D/lapack-3.12.1.tar.gz |
| 10 | [ -f "$T" ] || curl -fsSL -o "$T" "$URL" |
| 11 | echo "$SHA $T" | sha256sum -c - >&2 |
| 12 | [ -d "$D/lapack-3.12.1" ] || tar -xzf "$T" -C "$D" |
| 13 | echo "LAPACK=$(cd "$D/lapack-3.12.1" && pwd)" |