Skip to content

Latest commit

 

History

History
116 lines (79 loc) · 1.53 KB

INSTALL.md

File metadata and controls

116 lines (79 loc) · 1.53 KB

CBLAS/CLAPACK install instructions

Install instructions tested with:

  • gcc 7.4.0
  • cc 7.4.0
  • emcc 1.39.5

Autoinstall

bash install_repo.sh [emcc [emsdk_dir]]

Note that to set compiler options, the [Mm]ake.inc.* files have to be moditied

Manual install

libf2c

This generates libf2c.a in libf2c/ (among other things).

Linux

cd libf2c
make -f makefile.u

WASM

cd libf2c
make -f makefile.WASM

BLAS

This generates blas_LINUX.a in f2c_BLAS-3.8.0/ (among other things).

LINUX

cd f2c_BLAS-3.8.0
cp make.inc.LINUX make.inc
make

WASM

cd f2c_BLAS-3.8.0
cp make.inc.WASM make.inc
make

CBLAS + CBLAS tests

This generates:

  • cblas_LINUX.a in lib/ (among other things).
  • x[cdsz]cblat[1-3] test programs in testing/ (among other things).

Linux

cd CBLAS
cp Makefile.in.LINUX Makefile.in
make

WASM

cd CBLAS
cp Makefile.in.WASM Makefile.in
make

CLAPACK

Linux

cd CLAPACK-3.2.1
cp make.inc.linux make.inc
make

WASM

cd CLAPACK-3.2.1
cp make.inc.WASM make.inc
make

Running CBLAS tests

From the CBLAS directory

Linux

If not running wasm files, bash run_tests.sh

WASM

To generate tests for a wasm shared lib, bash run_wasm_test.sh. This will generate html files under testing. These files must be viewed via a webserver that can be created using

python -m SimpleHTTPServer <port>  # python 2
python -m http.server <port> # python 3