Skip to content

Commit

Permalink
Merge 9022e77 into 9f546bb
Browse files Browse the repository at this point in the history
  • Loading branch information
kortschak committed Dec 8, 2017
2 parents 9f546bb + 9022e77 commit 02ccbc6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
13 changes: 0 additions & 13 deletions .travis/linux/OpenBLAS/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,8 @@ if [ ! -e ${CACHE_DIR}/last_commit_id ]; then
pushd OpenBLAS
echo OpenBLAS version:$(git rev-parse HEAD)
sudo make FC=gfortran &> /dev/null && sudo make PREFIX=${CACHE_DIR} install
popd

curl http://www.netlib.org/blas/blast-forum/cblas.tgz | tar -zx

pushd CBLAS
sudo mv Makefile.LINUX Makefile.in
sudo BLLIB=${CACHE_DIR}/lib/libopenblas.a make alllib
sudo mv lib/cblas_LINUX.a ${CACHE_DIR}/lib/libcblas.a
popd

# Record commit id used to generate cache.
pushd OpenBLAS
echo $(git rev-parse HEAD) > ${CACHE_DIR}/last_commit_id
popd

fi

# copy the cache files into /usr
Expand Down
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Wrapper packages providing an interface to the NETLIB C BLAS and LAPACKE impleme
## Installation

```
go get gonum.org/v1/netlib/...
go get -d gonum.org/v1/netlib/...
```


Expand All @@ -17,9 +17,13 @@ Install OpenBLAS:
make
```

Then install the lapack/cgo package:
Then install the CGO BLAS wrapper package:
```sh
CGO_LDFLAGS="-L/path/to/OpenBLAS -lopenblas" go install github.com/gonum/lapack/cgo
CGO_LDFLAGS="-L/path/to/OpenBLAS -lopenblas" go install gonum.org/v1/netlib/blas/netlib
```
or the CGO LAPACKE wrapper package:
```sh
CGO_LDFLAGS="-L/path/to/OpenBLAS -lopenblas" go install gonum.org/v1/netlib/lapack/netlib
```

For Windows you can download binary packages for OpenBLAS at
Expand All @@ -33,13 +37,13 @@ adjust the `CGO_LDFLAGS` variable:

## Packages

### blas
### blas/netlib

Binding to a C implementation of the cblas interface (e.g. ATLAS, OpenBLAS, Intel MKL)

The recommended (free) option for good performance on both Linux and Darwin is OpenBLAS.

### lapack
### lapack/netlib

Binding to a C implementation of the lapacke interface (e.g. ATLAS, OpenBLAS, Intel MKL)

Expand Down

0 comments on commit 02ccbc6

Please sign in to comment.