Date: Sunday, October 11, 2015 @ 20:18:13 Author: arojas Revision: 143698
Add generic build of atlas-lapack Added: atlas-lapack-base/ atlas-lapack-base/trunk/ atlas-lapack-base/trunk/Makefile atlas-lapack-base/trunk/PKGBUILD atlas-lapack-base/trunk/atlas-lapack-base.install atlas-lapack-base/trunk/atlas-license.txt atlas-lapack-base/trunk/blas-license.txt atlas-lapack-base/trunk/disable-throttling-check.patch --------------------------------+ Makefile | 24 +++++++++++++ PKGBUILD | 68 +++++++++++++++++++++++++++++++++++++++ atlas-lapack-base.install | 9 +++++ atlas-license.txt | 29 ++++++++++++++++ blas-license.txt | 20 +++++++++++ disable-throttling-check.patch | 13 +++++++ 6 files changed, 163 insertions(+) Added: atlas-lapack-base/trunk/Makefile =================================================================== --- atlas-lapack-base/trunk/Makefile (rev 0) +++ atlas-lapack-base/trunk/Makefile 2015-10-11 18:18:13 UTC (rev 143698) @@ -0,0 +1,24 @@ +include Make.inc + +all: libatlas.so libf77blas.so libcblas.so libblas.so liblapack.so + + +libatlas.so: libatlas.a + ld $(LDFLAGS) -shared -soname $@ -o $@ --whole-archive libatlas.a \ + --no-whole-archive -lc $(LIBS) + +libf77blas.so : libf77blas.a libatlas.so + ld $(LDFLAGS) -shared -soname libblas.so.3 -o $@ --whole-archive \ + libf77blas.a --no-whole-archive $(F77SYSLIB) -L. -latlas + +libcblas.so : libcblas.a libatlas.so + ld $(LDFLAGS) -shared -soname $@ -o $@ --whole-archive libcblas.a \ + -L. -latlas + +libblas.so: libf77blas.so + ln -s $< $@ + +liblapack.so : liblapack.a libcblas.so libblas.so + ld $(LDFLAGS) -shared -soname liblapack.so.3 -o $@ --whole-archive \ + liblapack.a --no-whole-archive $(F77SYSLIB) -L. -lcblas -lblas -lgcc_s + Added: atlas-lapack-base/trunk/PKGBUILD =================================================================== --- atlas-lapack-base/trunk/PKGBUILD (rev 0) +++ atlas-lapack-base/trunk/PKGBUILD 2015-10-11 18:18:13 UTC (rev 143698) @@ -0,0 +1,68 @@ +# $Id$ +# Maintainer: Antonio Rojas <aro...@archlinux.org> +# Contributor: Giuseppe Borzi <gborzi___AT___ieee___DOT___org> +# Contributor: mickele <mimocciola___AT___yahoo___DOT___ com> +# Contributor: iztok pizorn <pizorn___AT___gmail___DOT___com> +# Contributor: olivier medoc <o_medoc___AT___yahoo___DOT___fr> + +pkgname=atlas-lapack-base +pkgver=3.10.2 +_lapackver=3.5.0 +pkgrel=1 +pkgdesc="Complete LAPACK and BLAS implementation using optimized ATLAS routines" +url="http://math-atlas.sourceforge.net/" +depends=(gcc-libs) +makedepends=(gcc-fortran) +arch=(i686 x86_64) +conflicts=(blas cblas lapack) +provides=(blas cblas 'lapack=$_lapackver' atlas-lapack) +license=(custom:blas custom:lapack custom:atlas) +options=(!makeflags) +source=(http://www.netlib.org/lapack/lapack-$_lapackver.tgz http://downloads.sourceforge.net/math-atlas/atlas${pkgver}.tar.bz2 blas-license.txt +atlas-license.txt Makefile disable-throttling-check.patch) +noextract=(lapack-$_lapackver.tgz) +install=$pkgname.install +md5sums=('b1d3e3e425b2e44a06760ff173104bdf' + 'a4e21f343dec8f22e7415e339f09f6da' + 'e8e512ee7a2d550139dcd765f127816b' + '4903eb06072dfbf94710691ccb6660bf' + 'd598a27d392d41b00f8e440f1f8fc2a4' + '54f80b9a56f13f960017460c36b725ce') + +prepare() { + mkdir -p ATLAS/build + +# override throttling check (Fedora) + patch -p0 -i disable-throttling-check.patch +} + +build() { + if [ "$CARCH" = "x86_64" ]; then + ARCHITECTURE_BUILD_OPTS="-b 64 -A x86SSE3" # for x86_64 + else + ARCHITECTURE_BUILD_OPTS="-b 32 -A x86SSE2" # for i686 + fi + + cd ATLAS/build + ../configure --prefix=/usr/ $ARCHITECTURE_BUILD_OPTS -Fa alg -fPIC -Si latune 0 -t 0 \ + --with-netlib-lapack-tarfile="$srcdir"/lapack-$_lapackver.tgz + make build + +# build shared libraries + cd lib + cp "$srcdir"/Makefile . + make +} + +package() { + cd ATLAS/build + + make DESTDIR="$pkgdir"/usr install + cp -d lib/*.so* "$pkgdir"/usr/lib + ln -sr "$pkgdir"/usr/lib/libblas.so{,.3} + ln -sr "$pkgdir"/usr/lib/liblapack.so{,.3} + + install -Dm644 "$srcdir"/blas-license.txt "$pkgdir"/usr/share/licenses/$pkgname/blas-license.txt + install -Dm644 "$srcdir"/ATLAS/build/src/lapack/reference/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/lapack-license.txt + install -Dm644 "$srcdir"/atlas-license.txt "$pkgdir"/usr/share/licenses/$pkgname/atlas-license.txt +} Property changes on: atlas-lapack-base/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Added: atlas-lapack-base/trunk/atlas-lapack-base.install =================================================================== --- atlas-lapack-base/trunk/atlas-lapack-base.install (rev 0) +++ atlas-lapack-base/trunk/atlas-lapack-base.install 2015-10-11 18:18:13 UTC (rev 143698) @@ -0,0 +1,9 @@ +post_install() { + echo "This package provides a generic, not optimized version of ATLAS." + echo "In order to improve performance, we recommend compiling a version of ATLAS" + echo "optimized for your processor, using the atlas-lapack package in AUR" +} + +post_upgrade() { + post_install $1 +} Added: atlas-lapack-base/trunk/atlas-license.txt =================================================================== --- atlas-lapack-base/trunk/atlas-license.txt (rev 0) +++ atlas-lapack-base/trunk/atlas-license.txt 2015-10-11 18:18:13 UTC (rev 143698) @@ -0,0 +1,29 @@ + Automatically Tuned Linear Algebra Software v3.8.2 + (C) Copyright 1999 R. Clint Whaley + + Code contributers : R. Clint Whaley, Antoine P. Petitet + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions, and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. The name of the ATLAS group or the names of its contributers may + not be used to endorse or promote products derived from this + software without specific written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ATLAS GROUP OR ITS CONTRIBUTORS + BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + Added: atlas-lapack-base/trunk/blas-license.txt =================================================================== --- atlas-lapack-base/trunk/blas-license.txt (rev 0) +++ atlas-lapack-base/trunk/blas-license.txt 2015-10-11 18:18:13 UTC (rev 143698) @@ -0,0 +1,20 @@ +From: http://www.netlib.org/blas/faq.html + + 2) Are there legal restrictions on the use of BLAS reference + implementation software? + +The reference BLAS is a freely-available software package. It is +available from netlib via anonymous ftp and the World Wide Web. Thus, +it can be included in commercial software packages (and has been). We +only ask that proper credit be given to the authors. + +Like all software, it is copyrighted. It is not trademarked, but we do +ask the following: + +If you modify the source for these routines we ask that you change the +name of the routine and comment the changes made to the original. + +We will gladly answer any questions regarding the software. If a +modification is done, however, it is the responsibility of the person +who modified the routine to provide support. + Property changes on: atlas-lapack-base/trunk/blas-license.txt ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: atlas-lapack-base/trunk/disable-throttling-check.patch =================================================================== --- atlas-lapack-base/trunk/disable-throttling-check.patch (rev 0) +++ atlas-lapack-base/trunk/disable-throttling-check.patch 2015-10-11 18:18:13 UTC (rev 143698) @@ -0,0 +1,13 @@ +diff -up ATLAS/CONFIG/src/config.c.zaloha ATLAS/CONFIG/src/config.c +--- ATLAS/CONFIG/src/config.c.zaloha 2012-10-25 11:29:02.495425989 +0200 ++++ ATLAS/CONFIG/src/config.c 2012-10-25 11:42:10.218216957 +0200 +@@ -711,6 +711,8 @@ int ProbePtrbits(int verb, char *targarg + + int ProbeCPUThrottle(int verb, char *targarg, enum OSTYPE OS, enum ASMDIA asmb) + { ++ return 0; /* impossible to turn off cpu throttling => ignore */ ++ /* this undermines performance of compiled library */ + int i, iret; + char *ln; + i = strlen(targarg) + 22 + 12; +