Install instructions tested with:
- gcc 7.4.0
- cc 7.4.0
- emcc 1.39.5
bash install_repo.sh [emcc [emsdk_dir]]
Note that to set compiler options, the [Mm]ake.inc.*
files have to be
moditied
This generates libf2c.a
in libf2c/
(among other things).
cd libf2c
make -f makefile.u
cd libf2c
make -f makefile.WASM
This generates blas_LINUX.a
in f2c_BLAS-3.8.0/
(among other things).
cd f2c_BLAS-3.8.0
cp make.inc.LINUX make.inc
make
cd f2c_BLAS-3.8.0
cp make.inc.WASM make.inc
make
This generates:
cblas_LINUX.a
inlib/
(among other things).x[cdsz]cblat[1-3]
test programs intesting/
(among other things).
cd CBLAS
cp Makefile.in.LINUX Makefile.in
make
cd CBLAS
cp Makefile.in.WASM Makefile.in
make
cd CLAPACK-3.2.1
cp make.inc.linux make.inc
make
cd CLAPACK-3.2.1
cp make.inc.WASM make.inc
make
From the CBLAS
directory
If not running wasm files, bash run_tests.sh
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