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
2ae6fd9d
Commit
2ae6fd9d
authored
9 years ago
by
Todd Gamblin
Browse files
Options
Downloads
Plain Diff
Merge pull request #413 from adk9/develop
Add the HPX-5 package to spack.
parents
9fb5ddbb
74225544
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/hpx5/package.py
+52
-0
52 additions, 0 deletions
var/spack/repos/builtin/packages/hpx5/package.py
with
52 additions
and
0 deletions
var/spack/repos/builtin/packages/hpx5/package.py
0 → 100644
+
52
−
0
View file @
2ae6fd9d
from
spack
import
*
import
os
class
Hpx5
(
Package
):
"""
The HPX-5 Runtime System. HPX-5 (High Performance ParalleX) is an
open source, portable, performance-oriented runtime developed at
CREST (Indiana University). HPX-5 provides a distributed
programming model allowing programs to run unmodified on systems
from a single SMP to large clusters and supercomputers with
thousands of nodes. HPX-5 supports a wide variety of Intel and ARM
platforms. It is being used by a broad range of scientific
applications enabling scientists to write code that performs and
scales better than contemporary runtimes.
"""
homepage
=
"
http://hpx.crest.iu.edu
"
url
=
"
http://hpx.crest.iu.edu/release/hpx-2.0.0.tar.gz
"
version
(
'
2.0.0
'
,
'
3d2ff3aab6c46481f9ec65c5b2bfe7a6
'
)
version
(
'
1.3.0
'
,
'
2260ecc7f850e71a4d365a43017d8cee
'
)
version
(
'
1.2.0
'
,
'
4972005f85566af4afe8b71afbf1480f
'
)
version
(
'
1.1.0
'
,
'
646afb460ecb7e0eea713a634933ce4f
'
)
version
(
'
1.0.0
'
,
'
8020822adf6090bd59ed7fe465f6c6cb
'
)
variant
(
'
debug
'
,
default
=
False
,
description
=
'
Build a debug version of HPX-5
'
)
variant
(
'
photon
'
,
default
=
False
,
description
=
'
Enable Photon support
'
)
variant
(
'
mpi
'
,
default
=
False
,
description
=
'
Enable MPI support
'
)
depends_on
(
"
mpi
"
,
when
=
'
+mpi
'
)
depends_on
(
"
mpi
"
,
when
=
'
+photon
'
)
def
install
(
self
,
spec
,
prefix
):
extra_args
=
[]
if
'
+debug
'
in
spec
:
extra_args
.
extend
([
'
--enable-debug
'
,
'
CFLAGS=-g -O0
'
])
else
:
extra_args
.
append
(
'
CFLAGS=-O3
'
)
if
'
+mpi
'
in
spec
:
extra_args
.
append
(
'
--enable-mpi
'
)
if
'
+photon
'
in
spec
:
extra_args
.
extend
([
'
--enable-mpi
'
,
'
--enable-photon
'
])
os
.
chdir
(
"
./hpx/
"
)
configure
(
'
--prefix=%s
'
%
prefix
,
*
extra_args
)
make
()
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