interplane.Get Omega
Read in your language

omega-blas

aien-dev/omega-blas

Brought by drakestapleton

branch main Branches Tags History

omega-blas / tests / netlib / fetch.sh

13 lines · 603 bytes Raw Blame History
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.
4set -eu
5D=${1:?usage: fetch.sh <dir>}
6URL=https://github.com/Reference-LAPACK/lapack/archive/refs/tags/v3.12.1.tar.gz
7SHA=2ca6407a001a474d4d4d35f3a61550156050c48016d949f0da0529c0aa052422
8mkdir -p "$D"
9T=$D/lapack-3.12.1.tar.gz
10[ -f "$T" ] || curl -fsSL -o "$T" "$URL"
11echo "$SHA $T" | sha256sum -c - >&2
12[ -d "$D/lapack-3.12.1" ] || tar -xzf "$T" -C "$D"
13echo "LAPACK=$(cd "$D/lapack-3.12.1" && pwd)"