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
a18ab8f7
Commit
a18ab8f7
authored
5 years ago
by
Stephanie Brink
Committed by
Greg Becker
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
new package: variorum (#13624)
parent
eefccd5d
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/variorum/package.py
+80
-0
80 additions, 0 deletions
var/spack/repos/builtin/packages/variorum/package.py
with
80 additions
and
0 deletions
var/spack/repos/builtin/packages/variorum/package.py
0 → 100644
+
80
−
0
View file @
a18ab8f7
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from
spack
import
*
class
Variorum
(
CMakePackage
):
"""
Variorum is a library providing vendor-neutral interfaces for
monitoring and controlling underlying hardware features.
"""
homepage
=
"
https://variorum.readthedocs.io
"
git
=
"
https://github.com/llnl/variorum.git
"
url
=
"
https://github.com/llnl/variorum/archive/v0.1.0.tar.gz
"
maintainers
=
[
"
slabasan
"
,
"
rountree
"
]
version
(
"
0.1.0
"
,
tag
=
"
v0.1.0
"
)
############
# Variants #
############
variant
(
"
shared
"
,
default
=
True
,
description
=
"
Build Variorum as shared lib
"
)
variant
(
"
docs
"
,
default
=
False
,
description
=
"
Build Variorum
'
s documentation
"
)
variant
(
"
log
"
,
default
=
False
,
description
=
"
Enable Variorum
'
s logs
"
)
variant
(
"
build_type
"
,
default
=
"
Release
"
,
description
=
"
CMake build type
"
,
values
=
(
"
Debug
"
,
"
Release
"
))
########################
# Package dependencies #
########################
depends_on
(
"
cmake@2.8:
"
,
type
=
"
build
"
)
depends_on
(
"
hwloc@1.11.9
"
)
#########################
# Documentation related #
#########################
depends_on
(
"
py-sphinx
"
,
when
=
"
+docs
"
,
type
=
"
build
"
)
root_cmakelists_dir
=
"
src
"
def
cmake_args
(
self
):
spec
=
self
.
spec
cmake_args
=
[]
if
"
+shared
"
in
spec
:
cmake_args
.
append
(
"
-DBUILD_SHARED_LIBS=ON
"
)
else
:
cmake_args
.
append
(
"
-DBUILD_SHARED_LIBS=OFF
"
)
if
"
+docs
"
in
spec
:
cmake_args
.
append
(
"
-DBUILD_DOCS=ON
"
)
sphinx_build_exe
=
join_path
(
spec
[
"
py-sphinx
"
].
prefix
.
bin
,
"
sphinx-build
"
)
cmake_args
.
append
(
"
-DSPHINX_EXECUTABLE=
"
+
sphinx_build_exe
)
else
:
cmake_args
.
append
(
"
-DBUILD_DOCS=OFF
"
)
if
'
build_type=Debug
'
in
spec
:
cmake_args
.
append
(
"
-DVARIORUM_DEBUG=ON
"
)
else
:
cmake_args
.
append
(
"
-DVARIORUM_DEBUG=OFF
"
)
if
"
+log
"
in
spec
:
cmake_args
.
append
(
"
-DVARIORUM_LOG=ON
"
)
else
:
cmake_args
.
append
(
"
-DVARIORUM_LOG=OFF
"
)
if
self
.
run_tests
:
cmake_args
.
append
(
"
-DBUILD_TESTS=ON
"
)
else
:
cmake_args
.
append
(
"
-DBUILD_TESTS=OFF
"
)
return
cmake_args
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