From 8370cea1597fe2f2280c67c02fc3b2f2b8dc994a Mon Sep 17 00:00:00 2001 From: Moazzam Moriani Date: Thu, 9 Jun 2022 11:08:28 +0500 Subject: [PATCH] Include solution to the Ubuntu-OpenBLAS issue in the CI --- .github/workflows/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 929974ccae..50269c55e1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,6 +36,16 @@ jobs: run: | sudo apt-get update && sudo apt-get -y install wget pkg-config libgmp-dev m4 libdw-dev jq python3-pip autoconf jo pip3 install intervaltree + # Work-around for Ubuntu-OpenBLAS issue for Owl by building OpenBLAS from source + sudo apt-get -y install unzip aspcud libshp-dev libplplot-dev gfortran pkg-config git + git clone https://github.com/xianyi/OpenBLAS OpenBLAS + cd OpenBLAS/ + make + cd .. + ldconfig /opt/OpenBLAS/lib/ + OWL_DISABLE_LAPACKE_LINKING_FLAG=1 + OWL_COMPILE_CFLAGS="-I/opt/OpenBLAS/include -I/home/opam/OpenBLAS/lapack-netlib/LAPACKE/include/ -L/opt/OpenBLAS/lib" + CFLAGS=${OWL_COMPILE_CFLAGS} eval $(opam env) opam update opam pin add -n --yes dune https://github.com/dra27/dune/archive/2.9.3-5.0.0.tar.gz