Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
bde9c7ee
Commit
bde9c7ee
authored
9 years ago
by
Todd Gamblin
Browse files
Options
Downloads
Patches
Plain Diff
Upate ATLAS and netlib-blas.
parent
0a92349f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
var/spack/packages/atlas/package.py
+25
-9
25 additions, 9 deletions
var/spack/packages/atlas/package.py
var/spack/packages/netlib-blas/package.py
+14
-3
14 additions, 3 deletions
var/spack/packages/netlib-blas/package.py
with
39 additions
and
12 deletions
var/spack/packages/atlas/package.py
+
25
−
9
View file @
bde9c7ee
...
...
@@ -12,13 +12,17 @@ class Atlas(Package):
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
"
# TODO: make this provide BLAS once we have the ability to prefer dependencies.
# TODO: until then netlib-blas will be the default (and only) blas
version
(
'
3.11.34
'
,
'
0b6c5389c095c4c8785fd0f724ec6825
'
,
url
=
'
http://sourceforge.net/projects/math-atlas/files/Developer%20%28unstable%29/3.11.34/atlas3.11.34.tar.bz2/download
'
)
version
(
'
3.10.2
'
,
'
a4e21f343dec8f22e7415e339f09f6da
'
,
url
=
'
http://downloads.sourceforge.net/project/math-atlas/Stable/3.10.2/atlas3.10.2.tar.bz2
'
)
# TODO: make this provide BLAS once it works better. Create a way
# TODO: to mark "beta" packages and require explicit invocation.
# provides('blas')
version
(
'
3.10.2
'
,
'
a4e21f343dec8f22e7415e339f09f6da
'
)
def
patch
(
self
):
# Disable thraed check. LLNL's environment does not allow
...
...
@@ -29,13 +33,25 @@ def patch(self):
# TODO: investigate a better way to add the check back in
# TODO: using, say, MSRs. Or move this to a variant.
@when
(
'
@:3.10
'
)
def
install
(
self
,
spec
,
prefix
):
with
working_dir
(
'
ATLAS-Build
'
,
create
=
True
):
configure
=
Executable
(
'
../configure
'
)
configure
(
'
--prefix=%s
'
%
prefix
,
'
-C
'
,
'
ic
'
,
'
cc
'
,
'
-C
'
,
'
if
'
,
'
f77
'
,
"
--dylibs
"
)
make
()
make
(
'
check
'
)
make
(
'
ptcheck
'
)
make
(
'
time
'
)
make
(
"
install
"
)
def
install
(
self
,
spec
,
prefix
):
with
working_dir
(
'
ATLAS-Build
'
,
create
=
True
):
self
.
module
.
configure
=
Executable
(
'
../configure
'
)
configure
(
'
--
prefix
=%s
'
%
prefix
,
'
-
C
'
,
'
ic
'
,
'
cc
'
,
'
-
C
'
,
'
if
'
,
'
f77
'
,
"
--
dylibs
"
)
configure
=
Executable
(
'
../configure
'
)
configure
(
'
--
incdir
=%s
'
%
prefix
.
include
,
'
-
-libdir=%s
'
%
prefix
.
lib
,
'
-
-cc=cc
'
,
"
--
shared
"
)
make
()
make
(
'
check
'
)
...
...
This diff is collapsed.
Click to expand it.
var/spack/packages/netlib-blas/package.py
+
14
−
3
View file @
bde9c7ee
from
spack
import
*
import
os
class
NetlibBlas
(
Package
):
"""
Netlib reference BLAS
"""
...
...
@@ -13,8 +15,16 @@ class NetlibBlas(Package):
# Doesn't always build correctly in parallel
parallel
=
False
def
patch
(
self
):
os
.
symlink
(
'
make.inc.example
'
,
'
make.inc
'
)
mf
=
FileFilter
(
'
make.inc
'
)
mf
.
filter
(
'
^FORTRAN.*
'
,
'
FORTRAN = f90
'
)
mf
.
filter
(
'
^LOADER.*
'
,
'
LOADER = f90
'
)
mf
.
filter
(
'
^CC =.*
'
,
'
CC = cc
'
)
def
install
(
self
,
spec
,
prefix
):
symlink
(
'
make.inc.example
'
,
'
make.inc
'
)
make
(
'
blaslib
'
)
# Tests that blas builds correctly
...
...
@@ -25,5 +35,6 @@ def install(self, spec, prefix):
install
(
'
librefblas.a
'
,
prefix
.
lib
)
# Blas virtual package should provide blas.a and libblas.a
symlink
(
prefix
.
lib
+
'
/librefblas.a
'
,
prefix
.
lib
+
'
/blas.a
'
)
symlink
(
prefix
.
lib
+
'
/librefblas.a
'
,
prefix
.
lib
+
'
/libblas.a
'
)
with
working_dir
(
prefix
.
lib
):
symlink
(
'
librefblas.a
'
,
'
blas.a
'
)
symlink
(
'
librefblas.a
'
,
'
libblas.a
'
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment