Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Nov 2023 16:03:35 GMT
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: a86016e8f6ce - main - Mk/Uses/blaslapack.mk: adding support of BLIS and FlexiBLAS
Message-ID:  <202311021603.3A2G3ZRV076510@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by thierry:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a86016e8f6cee385cb8caefbff92c10c6adbefec

commit a86016e8f6cee385cb8caefbff92c10c6adbefec
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2023-11-02 14:46:08 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2023-11-02 16:02:06 +0000

    Mk/Uses/blaslapack.mk: adding support of BLIS and FlexiBLAS
    
    /!\ Avoid mixing libraries using different BLAS-LAPACK implementations!
---
 Mk/Uses/blaslapack.mk | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/Mk/Uses/blaslapack.mk b/Mk/Uses/blaslapack.mk
index 0d3007ec5907..ff14194e50b5 100644
--- a/Mk/Uses/blaslapack.mk
+++ b/Mk/Uses/blaslapack.mk
@@ -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
 
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202311021603.3A2G3ZRV076510>