From a366bf86b7300c43187534e65948572d69a9ea12 Mon Sep 17 00:00:00 2001 From: blue-devil Date: Thu, 9 Jan 2020 21:25:58 +0000 Subject: [PATCH] lapack:version bump --- science/mathematics/lapack/actions.py | 7 +++- .../files/lapack-3.9.0-lapacke-shared.patch | 21 ++++++++++ science/mathematics/lapack/pspec.xml | 40 ++++++++++++++++++- science/mathematics/lapack/translations.xml | 15 +++++++ 4 files changed, 80 insertions(+), 3 deletions(-) create mode 100644 science/mathematics/lapack/files/lapack-3.9.0-lapacke-shared.patch diff --git a/science/mathematics/lapack/actions.py b/science/mathematics/lapack/actions.py index fbc0867103..fdcab9ff1b 100644 --- a/science/mathematics/lapack/actions.py +++ b/science/mathematics/lapack/actions.py @@ -12,23 +12,28 @@ from pisi.actionsapi import get def setup(): + pisitools.dosed("INSTALL/make.inc.gfortran", "-O2 -frecursive", "") + pisitools.dosed("INSTALL/make.inc.gfortran", "-O0 -frecursive", "") + ''' shelltools.copy("INSTALL/make.inc.gfortran", "make.inc") - if get.ARCH() == "x86_64": pisitools.dosed("make.inc", "-O2", "%s -fPIC -m64 -funroll-all-loops" % get.CFLAGS()) pisitools.dosed("make.inc", "NOOPT =", "NOOPT =-m64 -fPIC ") else: pisitools.dosed("make.inc", "-O2", "%s -fPIC -funroll-all-loops" % get.CFLAGS()) + ''' shelltools.makedirs("build") shelltools.cd("build") options = "-DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=ON \ + -DCBLAS=ON \ -DBUILD_TESTING=OFF" if get.buildTYPE() == "static": options = "-DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=OFF \ + -DCBLAS=ON \ -DBUILD_TESTING=OFF" cmaketools.configure(options, sourceDir="..") diff --git a/science/mathematics/lapack/files/lapack-3.9.0-lapacke-shared.patch b/science/mathematics/lapack/files/lapack-3.9.0-lapacke-shared.patch new file mode 100644 index 0000000000..2cfd6681ef --- /dev/null +++ b/science/mathematics/lapack/files/lapack-3.9.0-lapacke-shared.patch @@ -0,0 +1,21 @@ +diff -up lapack-3.9.0/INSTALL/make.inc.gfortran.shared lapack-3.9.0/INSTALL/make.inc.gfortran +--- lapack-3.9.0/INSTALL/make.inc.gfortran.shared 2019-11-26 09:19:38.689118934 -0500 ++++ lapack-3.9.0/INSTALL/make.inc.gfortran 2019-11-26 09:20:52.442628214 -0500 +@@ -81,3 +81,4 @@ CBLASLIB = $(TOPSRCDIR)/libcblas.a + LAPACKLIB = $(TOPSRCDIR)/liblapack.a + TMGLIB = $(TOPSRCDIR)/libtmglib.a + LAPACKELIB = $(TOPSRCDIR)/liblapacke.a ++SHLIB_LAPACKE = $(TOPSRCDIR)/liblapacke.so +diff -up lapack-3.9.0/LAPACKE/Makefile.shared lapack-3.9.0/LAPACKE/Makefile +--- lapack-3.9.0/LAPACKE/Makefile.shared 2019-11-26 09:19:38.689118934 -0500 ++++ lapack-3.9.0/LAPACKE/Makefile 2019-11-26 09:21:59.977268139 -0500 +@@ -54,6 +54,9 @@ lapacke: include/lapacke_mangling.h + include/lapacke_mangling.h: include/lapacke_mangling_with_flags.h.in + cp include/lapacke_mangling_with_flags.h.in $@ + ++shlib: lapacke ++ $(CC) $(CFLAGS) -shared -Wl,-soname,liblapacke.so.@SHORTVER@ -o $(SHLIB_LAPACKE).@LONGVER@ src/*.o utils/*.o $(LDFLAGS) $(LIBS) -lgfortran -lc -L.. -llapack ++ + .PHONY: lapacke_example + lapacke_example: lapacke + $(MAKE) -C example diff --git a/science/mathematics/lapack/pspec.xml b/science/mathematics/lapack/pspec.xml index ae7051170a..a1afe67f92 100644 --- a/science/mathematics/lapack/pspec.xml +++ b/science/mathematics/lapack/pspec.xml @@ -1,5 +1,5 @@ - + lapack @@ -12,12 +12,13 @@ library Linear Algebra PACKage LAPACK is a standard library for numerical linear algebra. LAPACK provides routines for solving systems of simultaneous linear equations, least-squares solutions of linear systems of equations, eigenvalue problems, and singular value problems. - http://www.netlib.org/lapack/lapack-3.8.0.tar.gz + https://github.com/Reference-LAPACK/lapack/archive/v3.9.0.tar.gz libgfortran cmake + lapack-3.9.0-lapacke-shared.patch @@ -48,9 +49,37 @@ /usr/lib/pkgconfig/blas.pc + + + cblas + C interface to BLAS + Blas is a standard library which provides a number of basic algorithms for numerical algebra. + + blas + + + /usr/lib/libcblas.so* + + + + + cblas-devel + Development files for CBLAS + cblas-devel provides development files for cblas + + blas-devel + + + /usr/lib/libcblas.a + /usr/include/cblas* + /usr/lib/pkgconfig/cblas.pc + /usr/lib/cmake/cblas-3.9.0/cblas* + + lapack + Linear Algebra PACKage libgcc libgfortran @@ -78,6 +107,13 @@ + + 2019-12-12 + 3.9.0 + Version bump + Blue DeviL + bluedevil@sctzine.com + 2018-08-14 3.8.0 diff --git a/science/mathematics/lapack/translations.xml b/science/mathematics/lapack/translations.xml index c6d755734d..cd40938235 100644 --- a/science/mathematics/lapack/translations.xml +++ b/science/mathematics/lapack/translations.xml @@ -9,15 +9,30 @@ blas Temel lineer cebir yordamları + blas, temel lineer cebir yordamları içerir + + + + cblas + BLAS kitaplığının C arayüzü + cblas, BLAS kitaplığının C arayüzü olan yordamları içerir lapack-devel lapack için geliştirme dosyaları + lapack-devel, lapack için geliştirme dosyaları içerir blas-devel blas için geliştirme dosyaları + blas-devel, blas için geliştirme dosyaları içerir + + + + cblas-devel + cblas için geliştirme dosyaları + cblas-devel, cblas için geliştirme dosyaları içerir