Skip to content

Commit 8370cea

Browse files
Include solution to the Ubuntu-OpenBLAS issue in the CI
1 parent 59bf19b commit 8370cea

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ jobs:
3636
run: |
3737
sudo apt-get update && sudo apt-get -y install wget pkg-config libgmp-dev m4 libdw-dev jq python3-pip autoconf jo
3838
pip3 install intervaltree
39+
# Work-around for Ubuntu-OpenBLAS issue for Owl by building OpenBLAS from source
40+
sudo apt-get -y install unzip aspcud libshp-dev libplplot-dev gfortran pkg-config git
41+
git clone https://github.com/xianyi/OpenBLAS OpenBLAS
42+
cd OpenBLAS/
43+
make
44+
cd ..
45+
ldconfig /opt/OpenBLAS/lib/
46+
OWL_DISABLE_LAPACKE_LINKING_FLAG=1
47+
OWL_COMPILE_CFLAGS="-I/opt/OpenBLAS/include -I/home/opam/OpenBLAS/lapack-netlib/LAPACKE/include/ -L/opt/OpenBLAS/lib"
48+
CFLAGS=${OWL_COMPILE_CFLAGS}
3949
eval $(opam env)
4050
opam update
4151
opam pin add -n --yes dune https://github.com/dra27/dune/archive/2.9.3-5.0.0.tar.gz

0 commit comments

Comments
 (0)