Skip to content

Commit

Permalink
Mk/Uses/blaslapack.mk: adding support of BLIS and FlexiBLAS
Browse files Browse the repository at this point in the history
/!\ Avoid mixing libraries using different BLAS-LAPACK implementations!
  • Loading branch information
thierry-FreeBSD committed Nov 2, 2023
1 parent 0c7a24c commit a86016e
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions Mk/Uses/blaslapack.mk
Expand Up @@ -2,16 +2,18 @@
#
# Feature: blaslapack
# Usage: USES=blaslapack or USES=blaslapack:ARGS
# Valid ARGS: atlas netlib (default) openblas
# Valid ARGS: atlas blis flexiblas netlib (default) openblas
#
# Provides: BLASLIB and LAPACKLIB
#
# Maintainer: thierry@FreeBSD.org
#
# /!\ Avoid mixing libraries using different BLAS-LAPACK implementations!

.if !defined(_INCLUDE_USES_BLASLAPACK_MK)
_INCLUDE_USES_BLASLAPACK_MK= yes

_valid_ARGS= atlas netlib openblas
_valid_ARGS= atlas blis flexiblas netlib openblas

_DEFAULT_BLASLAPACK= netlib

Expand All @@ -28,6 +30,16 @@ LAPACKLIB= -lalapack -lptcblas
_ATLASLIB= atlas
ATLASLIB= -l${_ATLASLIB}
BLA_VENDOR= ATLAS
. elif ${blaslapack_ARGS} == blis
LIB_DEPENDS+= libblis.so:math/blis
LIB_DEPENDS+= libflame.so:math/libflame
_BLASLIB= blis
LAPACKLIB= -lflame
BLA_VENDOR= FLAME
. elif ${blaslapack_ARGS} == flexiblas
LIB_DEPENDS+= libflexiblas.so:math/flexiblas
_BLASLIB= flexiblas
BLA_VENDOR= FlexiBLAS
. elif ${blaslapack_ARGS} == netlib
LIB_DEPENDS+= libblas.so:math/blas
LIB_DEPENDS+= liblapack.so:math/lapack
Expand Down

0 comments on commit a86016e

Please sign in to comment.