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
422a75e4
Commit
422a75e4
authored
9 years ago
by
Todd Gamblin
Browse files
Options
Downloads
Patches
Plain Diff
Clean up arpack build, use the Spack f77 compiler.
parent
5d7a6c0c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/spack/packages/arpack/package.py
+23
-10
23 additions, 10 deletions
var/spack/packages/arpack/package.py
with
23 additions
and
10 deletions
var/spack/packages/arpack/package.py
+
23
−
10
View file @
422a75e4
from
spack
import
*
class
Arpack
(
Package
):
"""
FIXME: put a proper description of your package here.
"""
"""
A collection of Fortran77 subroutines designed to solve large scale
eigenvalue problems.
"""
homepage
=
"
http://www.caam.rice.edu/software/ARPACK/
"
url
=
"
http://www.caam.rice.edu/software/ARPACK/SRC/arpack96.tar.gz
"
...
...
@@ -10,13 +12,24 @@ class Arpack(Package):
depends_on
(
'
blas
'
)
depends_on
(
'
lapack
'
)
def
patch
(
self
):
# Filter the cray makefile to make a spack one.
move
(
'
ARMAKES/ARmake.CRAY
'
,
'
ARmake.inc
'
)
makefile
=
FileFilter
(
'
ARmake.inc
'
)
# Be sure to use Spack F77 wrapper
makefile
.
filter
(
'
^FC.*
'
,
'
FC = f77
'
)
# Set up some variables.
makefile
.
filter
(
'
^PLAT.*
'
,
'
PLAT =
'
)
makefile
.
filter
(
'
^home =.*
'
,
'
home = %s
'
%
pwd
())
makefile
.
filter
(
'
^BLASdir.*
'
,
'
BLASdir = %s
'
%
self
.
spec
[
'
blas
'
].
prefix
)
makefile
.
filter
(
'
^LAPACKdir.*
'
,
'
LAPACKdir = %s
'
%
self
.
spec
[
'
lapack
'
].
prefix
)
# build the library in our own prefix.
makefile
.
filter
(
'
^ARPACKLIB.*
'
,
'
ARPACKLIB = %s/lib/libarpack.a
'
%
self
.
prefix
)
def
install
(
self
,
spec
,
prefix
):
move
(
'
./ARMAKES/ARmake.CRAY
'
,
'
./ARmake.inc
'
)
filter_file
(
'
PLAT = CRAY
'
,
'
PLAT =
'
,
'
./ARmake.inc
'
,
string
=
True
)
filter_file
(
'
home = $(HOME)/ARPACK
'
,
'
home = %s
'
%
pwd
(),
'
./ARmake.inc
'
,
string
=
True
)
filter_file
(
'
BLASdir = $(home)/BLAS
'
,
'
BLASdir = %s
'
%
spec
[
'
blas
'
].
prefix
,
'
./ARmake.inc
'
,
string
=
True
)
filter_file
(
'
LAPACKdir = $(home)/LAPACK
'
,
'
LAPACKdir = %s
'
%
spec
[
'
lapack
'
].
prefix
,
'
./ARmake.inc
'
,
string
=
True
)
filter_file
(
'
ARPACKLIB = $(home)/libarpack_$(PLAT).a
'
,
'
ARPACKLIB = %s/lib/libarpack.a
'
%
prefix
,
'
./ARmake.inc
'
,
string
=
True
)
cd
(
'
./SRC
'
)
make
(
'
all
'
)
with
working_dir
(
'
SRC
'
):
make
(
'
all
'
)
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