Added packaging files for ATLAS with and without netlib's LAPACK
This commit is contained in:
parent
457f2d1d51
commit
bbfc519ee5
51
var/spack/packages/atlas/package.py
Normal file
51
var/spack/packages/atlas/package.py
Normal file
@ -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")
|
56
var/spack/packages/lapack-atlas/package.py
Normal file
56
var/spack/packages/lapack-atlas/package.py
Normal file
@ -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")
|
Loading…
Reference in New Issue
Block a user