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
b1b94d2b
Commit
b1b94d2b
authored
9 years ago
by
Joseph Ciurej
Browse files
Options
Downloads
Patches
Plain Diff
Added the initial version of the 'zoltan' package.
parent
1f93c39c
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/repos/builtin/packages/zoltan/package.py
+52
-0
52 additions, 0 deletions
var/spack/repos/builtin/packages/zoltan/package.py
with
52 additions
and
0 deletions
var/spack/repos/builtin/packages/zoltan/package.py
0 → 100644
+
52
−
0
View file @
b1b94d2b
from
spack
import
*
class
Zoltan
(
Package
):
"""
The Zoltan library is a toolkit of parallel combinatorial algorithms for
parallel, unstructured, and/or adaptive scientific applications. Zoltan
'
s
largest component is a suite of dynamic load-balancing and paritioning
algorithms that increase applications
'
parallel performance by reducing
idle time. Zoltan also has graph coloring and graph ordering algorithms,
which are useful in task schedulers and parallel preconditioners.
"""
homepage
=
"
http://www.cs.sandia.gov/zoltan
"
base_url
=
"
http://www.cs.sandia.gov/~kddevin/Zoltan_Distributions
"
version
(
'
3.83
'
,
'
1ff1bc93f91e12f2c533ddb01f2c095f
'
)
version
(
'
3.3
'
,
'
5eb8f00bda634b25ceefa0122bd18d65
'
)
variant
(
'
fortran
'
,
default
=
True
,
description
=
'
Enable Fortran support
'
)
variant
(
'
mpi
'
,
default
=
False
,
description
=
'
Enable MPI support
'
)
depends_on
(
'
mpi
'
,
when
=
'
+mpi
'
)
def
install
(
self
,
spec
,
prefix
):
config_args
=
[
'
--enable-f90interface
'
if
'
+fortan
'
in
spec
else
'
--disable-f90interface
'
,
'
--enable-mpi
'
if
'
+mpi
'
in
spec
else
'
--disable-mpi
'
,
]
if
'
+mpi
'
in
spec
:
config_args
.
append
(
'
--with-mpi=%s
'
%
spec
[
'
mpi
'
].
prefix
)
config_args
.
append
(
'
--with-mpi-compilers=%s
'
%
spec
[
'
mpi
'
].
prefix
.
bin
)
# NOTE: Early versions of Zoltan come packaged with a few embedded
# library packages (e.g. ParMETIS, Scotch), which messes with Spack's
# ability to descend directly into the package's source directory.
if
spec
.
satisfies
(
'
@:3.3
'
):
cd
(
'
Zoltan_v%s
'
%
self
.
version
)
mkdirp
(
'
build
'
)
cd
(
'
build
'
)
config_zoltan
=
Executable
(
'
../configure
'
)
config_zoltan
(
'
--prefix=%s
'
%
pwd
(),
*
config_args
)
make
()
make
(
'
install
'
)
mkdirp
(
prefix
)
move
(
'
include
'
,
prefix
)
move
(
'
lib
'
,
prefix
)
def
url_for_version
(
self
,
version
):
return
'
%s/zoltan_distrib_v%s.tar.gz
'
%
(
Zoltan
.
base_url
,
version
)
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