summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorKevin Brandstatter <kjbrandstatter@gmail.com>2015-02-26 14:20:53 -0600
committerKevin Brandstatter <kjbrandstatter@gmail.com>2015-02-26 14:41:46 -0600
commitbbfc519ee5631efa4224d852d9c63446a60a8c07 (patch)
tree49a2d3c88856d4facaa76bd8cb139e5bed0fb0ef /var
parent457f2d1d51b2bf008f837bf3ce8ee3cb47d5ba6b (diff)
downloadspack-bbfc519ee5631efa4224d852d9c63446a60a8c07.tar.gz
spack-bbfc519ee5631efa4224d852d9c63446a60a8c07.tar.bz2
spack-bbfc519ee5631efa4224d852d9c63446a60a8c07.tar.xz
spack-bbfc519ee5631efa4224d852d9c63446a60a8c07.zip
Added packaging files for ATLAS with and without netlib's LAPACK
Diffstat (limited to 'var')
-rw-r--r--var/spack/packages/atlas/package.py51
-rw-r--r--var/spack/packages/lapack-atlas/package.py56
2 files changed, 107 insertions, 0 deletions
diff --git a/var/spack/packages/atlas/package.py b/var/spack/packages/atlas/package.py
new file mode 100644
index 0000000000..3fe42b750e
--- /dev/null
+++ b/var/spack/packages/atlas/package.py
@@ -0,0 +1,51 @@
+# FIXME:
+# This is a template package file for Spack. We've conveniently
+# put "FIXME" labels next to all the things you'll want to change.
+#
+# Once you've edited all the FIXME's, delete this whole message,
+# save this file, and test out your package like this:
+#
+# spack install atlas
+#
+# You can always get back here to change things with:
+#
+# spack edit atlas
+#
+# See the spack documentation for more information on building
+# packages.
+#
+from spack import *
+from spack.util.executable import Executable
+import os
+
+class Atlas(Package):
+ """
+ Automatically Tuned Linear Algebra Software, generic shared
+ ATLAS is an approach for the automatic generation and optimization of
+ numerical software. Currently ATLAS supplies optimized versions for the
+ complete set of linear algebra kernels known as the Basic Linear Algebra
+ Subroutines (BLAS), and a subset of the linear algebra routines in the
+ LAPACK library.
+ """
+ homepage = "http://math-atlas.sourceforge.net/"
+ url = "http://downloads.sourceforge.net/project/math-atlas/Stable/3.10.2/atlas3.10.2.tar.bz2"
+
+ version('3.10.2', 'a4e21f343dec8f22e7415e339f09f6da')
+
+ # FIXME: Add dependencies if this package requires them.
+ # depends_on("foo")
+
+ def install(self, spec, prefix):
+ #os.mkdir('ATLAS-Build')
+ #os.chdir('ATLAS-Build')
+ with working_dir('ATLAS-Build', create=True):
+ self.module.configure = Executable('../configure')
+ # FIXME: Modify the configure line to suit your build system here.
+ configure("--prefix=%s" % prefix)
+
+ # FIXME: Add logic to build and install here
+ make()
+ make('check')
+ make('ptcheck')
+ make('time')
+ make("install")
diff --git a/var/spack/packages/lapack-atlas/package.py b/var/spack/packages/lapack-atlas/package.py
new file mode 100644
index 0000000000..bdcad22b09
--- /dev/null
+++ b/var/spack/packages/lapack-atlas/package.py
@@ -0,0 +1,56 @@
+# FIXME:
+# This is a template package file for Spack. We've conveniently
+# put "FIXME" labels next to all the things you'll want to change.
+#
+# Once you've edited all the FIXME's, delete this whole message,
+# save this file, and test out your package like this:
+#
+# spack install atlas
+#
+# You can always get back here to change things with:
+#
+# spack edit atlas
+#
+# See the spack documentation for more information on building
+# packages.
+#
+from spack import *
+from spack.util.executable import Executable
+import os
+import urllib
+
+class LapackAtlas(Package):
+ """
+ Automatically Tuned Linear Algebra Software, generic shared
+ ATLAS is an approach for the automatic generation and optimization of
+ numerical software. Currently ATLAS supplies optimized versions for the
+ complete set of linear algebra kernels known as the Basic Linear Algebra
+ Subroutines (BLAS), and a subset of the linear algebra routines in the
+ LAPACK library.
+ """
+ homepage = "http://math-atlas.sourceforge.net/"
+ url = "http://downloads.sourceforge.net/project/math-atlas/Stable/3.10.2/atlas3.10.2.tar.bz2"
+
+ version('3.10.2', 'a4e21f343dec8f22e7415e339f09f6da')
+
+ # FIXME: Add dependencies if this package requires them.
+ # depends_on("foo")
+
+ def install(self, spec, prefix):
+ #os.mkdir('ATLAS-Build')
+ #os.chdir('ATLAS-Build')
+ with working_dir('ATLAS-Build', create=True):
+ self.module.configure = Executable('../configure')
+ lapack_file = 'lapack-3.5.0.tgz'
+ lapack = urllib.URLopener()
+ lapack.retrieve('http://www.netlib.org/lapack/' + lapack_file, lapack_file)
+
+ configure("--prefix=%s" % prefix,
+ "--shared",
+ '--with-netlib-lapack-tarfile=%s' % os.getcwd() + '/' + lapack_file)
+
+ make()
+ make('check')
+ make('ptcheck')
+ make('time')
+ make("install")