Skip to content

Commit

Permalink
CI (Alpine): Use reference BLAS and LAPACK.
Browse files Browse the repository at this point in the history
Some SuiteSparse libraries rely heavily on OpenMP. But the version of
OpenBLAS that is distributed by Alpine Linux is built without OpenMP.
This could lead to deadlocks (and OpenBLAS is very verbose about that
risk):
> OpenBLAS Warning : Detect OpenMP Loop and this application may hang. Please rebuild the library with USE_OPENMP=1 option.

Use the reference implementations of the BLAS and LAPACK libraries
instead (which might be slower than OpenBLAS but safer on that
distribution).
  • Loading branch information
mmuetzel committed Nov 7, 2023
1 parent 11af347 commit 2640bf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-arch-emu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
m4
gmp-dev
mpfr-dev
openblas-dev
lapack-dev
valgrind
- name: prepare ccache
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
-DCMAKE_C_COMPILER_LAUNCHER="ccache" \
-DCMAKE_CXX_COMPILER_LAUNCHER="ccache" \
-DCMAKE_Fortran_COMPILER_LAUNCHER="ccache" \
-DBLA_VENDOR="OpenBLAS" \
-DBLA_VENDOR="Generic" \
-DCOMPACT=ON \
..
echo "::endgroup::"
Expand Down Expand Up @@ -167,7 +167,7 @@ jobs:
printf "::group::\033[0;32m==>\033[0m Configuring example\n"
cmake \
-DCMAKE_PREFIX_PATH="${GITHUB_WORKSPACE}/lib/cmake" \
-DBLA_VENDOR="OpenBLAS" \
-DBLA_VENDOR="Generic" \
..
echo "::endgroup::"
printf "::group::\033[0;32m==>\033[0m Building example\n"
Expand Down

0 comments on commit 2640bf1

Please sign in to comment.