Re: git: 0c7a24c1125f - main - math/flexiblas: new port, FlexiBLAS - A BLAS and LAPACK wrapper library

From: Thierry Thomas <thierry_at_freebsd.org>
Date: Thu, 02 Nov 2023 17:34:24 UTC
Le jeu.  2 nov. 23 à 18:23:27 +0100, Max Brazhnikov <makc@freebsd.org>
 écrivait :

> Hi Thierry,

Hello Max,

> > +.include <bsd.port.pre.mk>
> > +
> > +.if exists(${LOCALBASE}/lib/libatlas.so)
> > +LIB_DEPENDS+=  libatlas.so:math/atlas
> > +PLIST_SUB+=    OPENBLAS="@comment " ATLAS=""
> > +.else
> > +LIB_DEPENDS+=  libcblas.so:math/cblas  \
> > +               libopenblas.so:math/openblas
> > +PLIST_SUB+=    OPENBLAS="" ATLAS="@comment "
> > +.endif
> 
> Could this be governed not by fate but via options?

I chose this method because ATLAS is a very special case:
- it is not packageable;
- it takes a very loooong time to build;
- I suspect that is not very optimized for modern CPUs.

Therefore I prefer not to use it as a direct dependency, but only for
machines where it has already been installed. For the other ones,
OpenBLAS is the default choice.
-- 
Th. Thomas.