summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSaravan Pantham <saravan.pantham@gmail.com>2015-03-18 15:53:50 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2015-06-06 13:06:18 -0700
commitd461aa3722b5b19acebe9a37bea1739222186755 (patch)
treed138956424e92de9abba1050460c2204807e0f06 /var
parenta23e1579e3f716c2ba2a445f8ff4ce69ed2632fb (diff)
downloadspack-d461aa3722b5b19acebe9a37bea1739222186755.tar.gz
spack-d461aa3722b5b19acebe9a37bea1739222186755.tar.bz2
spack-d461aa3722b5b19acebe9a37bea1739222186755.tar.xz
spack-d461aa3722b5b19acebe9a37bea1739222186755.zip
Added Lapack package
Diffstat (limited to 'var')
-rw-r--r--var/spack/packages/lapack/package.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/var/spack/packages/lapack/package.py b/var/spack/packages/lapack/package.py
new file mode 100644
index 0000000000..f2dab5ecb6
--- /dev/null
+++ b/var/spack/packages/lapack/package.py
@@ -0,0 +1,31 @@
+from spack import *
+import os
+
+class Lapack(Package):
+ """LAPACK is written in Fortran 90 and provides routines for solving systems
+ of simultaneous linear equations, least-squares solutions of linear systems
+ of equations, eigenvalue problems, and singular value problems."""
+ homepage = "http://www.netlib.org/lapack"
+ url = "http://www.netlib.org/lapack/lapack-3.5.0.tgz"
+
+ version('3.5.0', 'b1d3e3e425b2e44a06760ff173104bdf')
+
+ depends_on('blas')
+
+ def install(self, spec, prefix):
+ mv = which('mv') # Create a shell wrapper for the mv command.
+ mkdir = which('mkdir') # Create a shell wrapper for the mkdir command.
+ pwd = os.getcwd() # Retrieve the current working dir.
+
+ # Lapack and BLAS testing fails for some reason, but the library is
+ # built and ready to go at this point. The testing stuff is going to be
+ # switched off for now.
+ filter_file('blas_testing lapack_testing ', ' ', 'Makefile', string=True)
+
+ mv('%s/make.inc.example' % pwd, '%s/make.inc' % pwd)
+ filter_file('../../librefblas.a', '%s/libblas.a' % spec['blas'].prefix.lib, 'make.inc', string=True) # Specify the BLAS lib to use.
+
+ make()
+ mkdir('%s' % prefix.lib) # Create the lib dir inside the install dir.
+ mv('%s/liblapack.a' % pwd, '%s/liblapack.a' % prefix.lib) # Move the library file to the install dir.
+