diff options
author | Michael Orlitzky <mjo@gentoo.org> | 2020-04-01 19:59:53 -0400 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2020-04-03 12:03:48 -0400 |
commit | 8db3670e7902795f2ae61d64b1930a946e5b2efc (patch) | |
tree | 9ed43f004d1f357b9d9579d24eaa8ba643dca05b /sci-libs/fflas-ffpack/files | |
parent | profiles/desc/cpu_flags_x86.desc: add avx512dq and avx512vl. (diff) | |
download | gentoo-8db3670e7902795f2ae61d64b1930a946e5b2efc.tar.gz gentoo-8db3670e7902795f2ae61d64b1930a946e5b2efc.tar.bz2 gentoo-8db3670e7902795f2ae61d64b1930a946e5b2efc.zip |
sci-libs/fflas-ffpack: new package for finite-field linear algebra.
This is a straightforward import of the latest fflas-ffpack-2.4.3.ebuild
that François Bissey has been maintaining in the sage-on-gentoo overlay,
with only a few minor changes:
* I added a "+" to the LICENSE to match the upstream LGPL-2.1+.
* I switched the openmp check to use tc-check-openmp() conditionally
on the MERGE_TYPE variable.
* Added BDEPEND="virtual/pkgconfig" since we patch in a call to
PKG_CHECK_MODULES.
I also removed a warning about build failures with USE=openmp. From what
I can tell, this stems from an older report (upstream Github issue 48)
using gcc-4.9.x that was never fully debugged. If the problems persist,
we can revisit that report, or just mask the flag.
Closes: https://bugs.gentoo.org/show_bug.cgi?id=715678
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'sci-libs/fflas-ffpack/files')
-rw-r--r-- | sci-libs/fflas-ffpack/files/fflas-ffpack-2.3.2-blaslapack.patch | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/sci-libs/fflas-ffpack/files/fflas-ffpack-2.3.2-blaslapack.patch b/sci-libs/fflas-ffpack/files/fflas-ffpack-2.3.2-blaslapack.patch new file mode 100644 index 000000000000..3154a2618196 --- /dev/null +++ b/sci-libs/fflas-ffpack/files/fflas-ffpack-2.3.2-blaslapack.patch @@ -0,0 +1,90 @@ +diff --git a/configure.ac b/configure.ac +index 5b46b18..5e0264a 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -248,49 +248,24 @@ dnl echo '********************************************************************** + dnl exit 1 + dnl ]) + +-BLAS_FOUND=false +- +-FF_CHECK_BLAS_CFLAGS +-FF_CHECK_BLAS_LIBS +-FF_CHECK_MKL +-FF_CHECK_USER_BLAS +-FF_CHECK_USER_LAPACK +- +-FF_OPENBLAS_NUM_THREADS +- +-# FF_CHECK_BLAS +- +-# FF_CHECK_GOTOBLAS +- +-# FF_CHECK_GSL +- +-# if test "$BLAS_FOUND" = "false" ; then +- # FF_CHECK_CBLAS +-# fi +- +-# if test "$BLAS_FOUND" = "false" ; then +- # FF_CHECK_OTHERBLAS +-# fi +- +-# FF_CHECK_LAPACK +- +-# if test "$BLAS_FOUND" = "false" ; then +- # FF_CHECK_BLAS2 +-# fi +- +- +- +-# BLAS_LIBS="${BLAS_LIBS}" +-# BLAS_LIBS="-L/${BLAS_PATH} ${LAPACK_LIBS} ${BLAS_LIBS}" +-# AC_SUBST(BLAS_LIBS) +- +-# FF_CHECK_CUDA +- +-# AM_CONDITIONAL(FFLASFFPACK_HAVE_BLAS, test "x$BLAS_FOUND" != "xfalse") +- +- +-# FF_BENCH +- ++PKG_PROG_PKG_CONFIG ++ ++PKG_CHECK_MODULES([BLAS], [cblas blas],[ ++ AC_DEFINE(HAVE_BLAS,1,[Define if BLAS is installed]) ++ AC_DEFINE(HAVE_CBLAS,1,[Define if C interface to BLAS is installed]) ++ HAVE_BLAS=yes ++ BLAS_PATH="" ++ CBLAS_LIBS="${BLAS_LIBS}" ++ AC_SUBST(BLAS_LIBS) ++ AC_SUBST(CBLAS_LIBS) ++ AC_SUBST(BLAS_CFLAGS) ++ AC_SUBST(BLAS_PATH)]) ++ ++PKG_CHECK_MODULES([LAPACK], [lapack],[ ++ AC_DEFINE(HAVE_LAPACK,1,[Define if LAPACK is installed]) ++ AC_SUBST(LAPACK_LIBS)]) ++ ++AM_CONDITIONAL(FFLASFFPACK_HAVE_LAPACK, test "x$HAVE_LAPACK" == "x1") + + FF_DOC + +diff --git a/fflas-ffpack-config.in b/fflas-ffpack-config.in +index f1dac22..17633a0 100644 +--- a/fflas-ffpack-config.in ++++ b/fflas-ffpack-config.in +@@ -107,11 +107,11 @@ while test $# -gt 0; do + ;; + + --libs) +- echo @PARLIBS@ @PRECOMPILE_LIBS@ @BLAS_LIBS@ @GIVARO_LIBS@ # @CUDA_LIBS@ ++ echo @PARLIBS@ @PRECOMPILE_LIBS@ @LAPACK_LIBS@ @BLAS_LIBS@ @GIVARO_LIBS@ # @CUDA_LIBS@ + ;; + + --blas-libs) +- echo @BLAS_LIBS@ ++ echo @LAPACK_LIBS@ @BLAS_LIBS@ + ;; + + --blas-home) |