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
eaa340eb
Commit
eaa340eb
authored
6 years ago
by
sknigh
Committed by
Adam J. Stewart
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added hpl 2.3 (#10345)
* Added hpl 2.3 * Added requested build fixes, added step to copy HPL.dat in 2.3+
parent
d7fb3fd8
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/hpl/package.py
+31
-3
31 additions, 3 deletions
var/spack/repos/builtin/packages/hpl/package.py
with
31 additions
and
3 deletions
var/spack/repos/builtin/packages/hpl/package.py
+
31
−
3
View file @
eaa340eb
...
...
@@ -8,7 +8,7 @@
import
platform
class
Hpl
(
Makefile
Package
):
class
Hpl
(
Autotools
Package
):
"""
HPL is a software package that solves a (random) dense linear system
in double precision (64 bits) arithmetic on distributed-memory computers.
It can thus be regarded as a portable as well as freely available
...
...
@@ -17,6 +17,9 @@ class Hpl(MakefilePackage):
homepage
=
"
http://www.netlib.org/benchmark/hpl/
"
url
=
"
http://www.netlib.org/benchmark/hpl/hpl-2.2.tar.gz
"
# Note: HPL uses autotools starting with 2.3
version
(
'
2.3
'
,
sha256
=
'
32c5c17d22330e6f2337b681aded51637fb6008d3f0eb7c277b163fadd612830
'
)
version
(
'
2.2
'
,
'
0eb19e787c3dc8f4058db22c9e0c5320
'
)
variant
(
'
openmp
'
,
default
=
False
,
description
=
'
Enable OpenMP support
'
)
...
...
@@ -24,13 +27,21 @@ class Hpl(MakefilePackage):
depends_on
(
'
mpi@1.1:
'
)
depends_on
(
'
blas
'
)
# 2.3 adds support for openmpi 4
conflicts
(
'
openmpi@4.0.0:
'
,
when
=
'
@:2.2
'
)
parallel
=
False
arch
=
'
{0}-{1}
'
.
format
(
platform
.
system
(),
platform
.
processor
())
build_targets
=
[
'
arch={0}
'
.
format
(
arch
)]
def
edit
(
self
,
spec
,
prefix
):
@when
(
'
@:2.2
'
)
def
autoreconf
(
self
,
spec
,
prefix
):
# Prevent sanity check from killing the build
touch
(
'
configure
'
)
@when
(
'
@:2.2
'
)
def
configure
(
self
,
spec
,
prefix
):
# List of configuration options
# Order is important
config
=
[]
...
...
@@ -88,9 +99,26 @@ def edit(self, spec, prefix):
for
var
in
config
:
makefile
.
write
(
'
{0}
\n
'
.
format
(
var
))
@when
(
'
@2.3:
'
)
def
configure_args
(
self
):
config
=
[
'
CFLAGS=-O3
'
]
return
config
@when
(
'
@:2.2
'
)
def
install
(
self
,
spec
,
prefix
):
# Manual installation
install_tree
(
join_path
(
'
bin
'
,
self
.
arch
),
prefix
.
bin
)
install_tree
(
join_path
(
'
lib
'
,
self
.
arch
),
prefix
.
lib
)
install_tree
(
join_path
(
'
include
'
,
self
.
arch
),
prefix
.
include
)
install_tree
(
'
man
'
,
prefix
.
man
)
@run_after
(
'
install
'
)
def
copy_dat
(
self
):
if
self
.
spec
.
satisfies
(
'
@2.3:
'
):
# The pre-2.3 makefile would include a default HPL.dat config
# file in the bin directory
install
(
'
./testing/ptest/HPL.dat
'
,
join_path
(
self
.
prefix
.
bin
,
'
HPL.dat
'
))
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