File: run_blas_tests.sh

package info (click to toggle)
lapack 3.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 72,832 kB
  • ctags: 41,660
  • sloc: fortran: 581,236; ansic: 175,264; makefile: 4,428; python: 269; sh: 133
file content (30 lines) | stat: -rwxr-xr-x 683 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

# This scripts runs all BLAS tests against the BLAS implementation currently
# selected through the alternatives system
# (see "update-alternatives --display libblas.so.3").
# The BLAS implentation can be overriden using LD_LIBRARY_PATH.

# This script creates a few temporary files in the current directory.

PATH=$PATH:/usr/lib/libblas

DATADIR=/usr/lib/libblas

# Test Fortran BLAS
for p in s d c z
do
    xblat1${p}
    xblat2${p} < $DATADIR/${p}blat2.in
    cat ${p}blat2.out
    xblat3${p} < $DATADIR/${p}blat3.in
    cat ${p}blat3.out
done

# Test CBLAS
for p in s d c z
do
    x${p}cblat1
    x${p}cblat2 < $DATADIR/${p}in2
    x${p}cblat3 < $DATADIR/${p}in3
done