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
b9746de5
Commit
b9746de5
authored
9 years ago
by
Todd Gamblin
Browse files
Options
Downloads
Patches
Plain Diff
Working ARPACK package.
parent
03780ea1
No related branches found
Branches containing commit
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
+6
-2
6 additions, 2 deletions
var/spack/packages/arpack/package.py
with
6 additions
and
2 deletions
var/spack/packages/arpack/package.py
+
6
−
2
View file @
b9746de5
from
spack
import
*
from
spack
import
*
import
os
import
shutil
class
Arpack
(
Package
):
class
Arpack
(
Package
):
"""
A collection of Fortran77 subroutines designed to solve large scale
"""
A collection of Fortran77 subroutines designed to solve large scale
...
@@ -14,15 +16,16 @@ class Arpack(Package):
...
@@ -14,15 +16,16 @@ class Arpack(Package):
def
patch
(
self
):
def
patch
(
self
):
# Filter the cray makefile to make a spack one.
# Filter the cray makefile to make a spack one.
move
(
'
ARMAKES/ARmake.CRAY
'
,
'
ARmake.inc
'
)
shutil
.
move
(
'
ARMAKES/ARmake.CRAY
'
,
'
ARmake.inc
'
)
makefile
=
FileFilter
(
'
ARmake.inc
'
)
makefile
=
FileFilter
(
'
ARmake.inc
'
)
# Be sure to use Spack F77 wrapper
# Be sure to use Spack F77 wrapper
makefile
.
filter
(
'
^FC.*
'
,
'
FC = f77
'
)
makefile
.
filter
(
'
^FC.*
'
,
'
FC = f77
'
)
makefile
.
filter
(
'
^FFLAGS.*
'
,
'
FFLAGS = -O2 -g
'
)
# Set up some variables.
# Set up some variables.
makefile
.
filter
(
'
^PLAT.*
'
,
'
PLAT =
'
)
makefile
.
filter
(
'
^PLAT.*
'
,
'
PLAT =
'
)
makefile
.
filter
(
'
^home
=
.*
'
,
'
home = %s
'
%
p
wd
())
makefile
.
filter
(
'
^home.*
'
,
'
home = %s
'
%
os
.
getc
wd
())
makefile
.
filter
(
'
^BLASdir.*
'
,
'
BLASdir = %s
'
%
self
.
spec
[
'
blas
'
].
prefix
)
makefile
.
filter
(
'
^BLASdir.*
'
,
'
BLASdir = %s
'
%
self
.
spec
[
'
blas
'
].
prefix
)
makefile
.
filter
(
'
^LAPACKdir.*
'
,
'
LAPACKdir = %s
'
%
self
.
spec
[
'
lapack
'
].
prefix
)
makefile
.
filter
(
'
^LAPACKdir.*
'
,
'
LAPACKdir = %s
'
%
self
.
spec
[
'
lapack
'
].
prefix
)
...
@@ -31,5 +34,6 @@ def patch(self):
...
@@ -31,5 +34,6 @@ def patch(self):
def
install
(
self
,
spec
,
prefix
):
def
install
(
self
,
spec
,
prefix
):
mkdirp
(
self
.
prefix
.
lib
)
with
working_dir
(
'
SRC
'
):
with
working_dir
(
'
SRC
'
):
make
(
'
all
'
)
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