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
2de2d4be
Commit
2de2d4be
authored
10 years ago
by
Todd Gamblin
Browse files
Options
Downloads
Patches
Plain Diff
Modify MPI installs to work without fortran.
parent
c9fbba22
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/spack/spack/__init__.py
+2
-2
2 additions, 2 deletions
lib/spack/spack/__init__.py
var/spack/packages/mpich/package.py
+13
-3
13 additions, 3 deletions
var/spack/packages/mpich/package.py
var/spack/packages/openmpi/package.py
+20
-10
20 additions, 10 deletions
var/spack/packages/openmpi/package.py
with
35 additions
and
15 deletions
lib/spack/spack/__init__.py
+
2
−
2
View file @
2de2d4be
...
@@ -137,9 +137,9 @@
...
@@ -137,9 +137,9 @@
# TODO: it's not clear where all the stuff that needs to be included in packages
# TODO: it's not clear where all the stuff that needs to be included in packages
# should live. This file is overloaded for spack core vs. for packages.
# should live. This file is overloaded for spack core vs. for packages.
#
#
__all__
=
[
'
Package
'
,
'
Version
'
,
'
when
'
]
__all__
=
[
'
Package
'
,
'
Version
'
,
'
when
'
,
'
ver
'
]
from
spack.package
import
Package
from
spack.package
import
Package
from
spack.version
import
Version
from
spack.version
import
Version
,
ver
from
spack.multimethod
import
when
from
spack.multimethod
import
when
import
llnl.util.filesystem
import
llnl.util.filesystem
...
...
This diff is collapsed.
Click to expand it.
var/spack/packages/mpich/package.py
+
13
−
3
View file @
2de2d4be
...
@@ -38,8 +38,18 @@ class Mpich(Package):
...
@@ -38,8 +38,18 @@ class Mpich(Package):
provides
(
'
mpi@:1
'
,
when
=
'
@1:
'
)
provides
(
'
mpi@:1
'
,
when
=
'
@1:
'
)
def
install
(
self
,
spec
,
prefix
):
def
install
(
self
,
spec
,
prefix
):
configure
(
config_args
=
[
"
--prefix=
"
+
prefix
,
"
--prefix=
"
+
prefix
,
"
--enable-shared
"
]
"
--enable-shared
"
)
# TODO: Spack should make it so that you can't actually find
# these compilers if they're "disabled" for the current
# compiler configuration.
if
not
self
.
compiler
.
f77
:
config_args
.
append
(
"
--disable-f77
"
)
if
not
self
.
compiler
.
fc
:
config_args
.
append
(
"
--disable-fc
"
)
configure
(
*
config_args
)
make
()
make
()
make
(
"
install
"
)
make
(
"
install
"
)
This diff is collapsed.
Click to expand it.
var/spack/packages/openmpi/package.py
+
20
−
10
View file @
2de2d4be
...
@@ -10,22 +10,32 @@ class Openmpi(Package):
...
@@ -10,22 +10,32 @@ class Openmpi(Package):
"""
"""
homepage
=
"
http://www.open-mpi.org
"
homepage
=
"
http://www.open-mpi.org
"
url
=
"
http://www.open-mpi.org/software/ompi/v1.6/downloads/openmpi-1.6.5.tar.bz2
"
version
(
'
1.6.5
'
,
'
03aed2a4aa4d0b27196962a2a65fc475
'
)
version
(
'
1.8.2
'
,
'
ab538ed8e328079d566fc797792e016e
'
,
url
=
'
http://www.open-mpi.org/software/ompi/v1.8/downloads/openmpi-1.8.2.tar.gz
'
)
provides
(
'
mpi@:2
'
)
version
(
'
1.6.5
'
,
'
03aed2a4aa4d0b27196962a2a65fc475
'
,
url
=
"
http://www.open-mpi.org/software/ompi/v1.6/downloads/openmpi-1.6.5.tar.bz2
"
)
patch
(
'
ad_lustre_rwcontig_open_source.patch
'
,
when
=
"
@1.6.5
"
)
patch
(
'
llnl-platforms.patch
'
,
when
=
"
@1.6.5
"
)
patch
(
'
ad_lustre_rwcontig_open_source.patch
'
)
provides
(
'
mpi@:2
'
)
patch
(
'
llnl-platforms.patch
'
)
def
install
(
self
,
spec
,
prefix
):
def
install
(
self
,
spec
,
prefix
):
configure
(
"
--prefix=%s
"
%
prefix
,
config_args
=
[
"
--prefix=%s
"
%
prefix
]
"
--with-platform=contrib/platform/lanl/tlcc2/optimized-nopanasas
"
)
# TODO: use variants for this, e.g. +lanl, +llnl, etc.
# use this for LANL builds, but for LLNL builds, we need:
# "--with-platform=contrib/platform/llnl/optimized"
if
self
.
version
==
ver
(
"
1.6.5
"
):
confg_args
.
append
(
"
--with-platform=contrib/platform/lanl/tlcc2/optimized-nopanasas
"
)
# TODO: implement variants next, so we can have LLNL and LANL options.
# TODO: Spack should make it so that you can't actually find
# use above for LANL builds, but for LLNL builds, we need this
# these compilers if they're "disabled" for the current
# "--with-platform=contrib/platform/llnl/optimized")
# compiler configuration.
if
not
self
.
compiler
.
f77
and
not
self
.
compiler
.
fc
:
config_args
.
append
(
"
--enable-mpi-fortran=no
"
)
configure
(
*
config_args
)
make
()
make
()
make
(
"
install
"
)
make
(
"
install
"
)
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