summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Kozhevnikov <toxa81@gmail.com>2021-06-26 19:25:15 +0200
committerGitHub <noreply@github.com>2021-06-26 19:25:15 +0200
commit9bd9cc2c7b5342839b4af960b534c052ee0d47c6 (patch)
treebfd1abbaaeecb07d079d8a242dc361ac622de81f
parent4c149ade7f60fa01f1ebf98d79ac8b763c0eb903 (diff)
downloadspack-9bd9cc2c7b5342839b4af960b534c052ee0d47c6.tar.gz
spack-9bd9cc2c7b5342839b4af960b534c052ee0d47c6.tar.bz2
spack-9bd9cc2c7b5342839b4af960b534c052ee0d47c6.tar.xz
spack-9bd9cc2c7b5342839b4af960b534c052ee0d47c6.zip
swith profiler on/off (#24547)
-rw-r--r--var/spack/repos/builtin/packages/sirius/package.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/sirius/package.py b/var/spack/repos/builtin/packages/sirius/package.py
index 7d6e3f31ec..dbbb3f33fb 100644
--- a/var/spack/repos/builtin/packages/sirius/package.py
+++ b/var/spack/repos/builtin/packages/sirius/package.py
@@ -74,6 +74,7 @@ class Sirius(CMakePackage, CudaPackage):
variant('apps', default=True, description="Build applications")
variant('tests', default=False, description="Build tests")
variant('single_precision', default=False, description="Use single precision arithmetics")
+ variant('profiler', default=True, description="Use internal profiler to measure execution time")
depends_on('python', type=('build', 'run'))
depends_on('mpi')
@@ -185,7 +186,8 @@ class Sirius(CMakePackage, CudaPackage):
self.define_from_variant('BUILD_TESTING', 'tests'),
self.define_from_variant('BUILD_APPS', 'apps'),
self.define_from_variant('BUILD_SHARED_LIBS', 'shared'),
- self.define_from_variant('USE_FP32', 'single_precision')
+ self.define_from_variant('USE_FP32', 'single_precision'),
+ self.define_from_variant('USE_PROFILER', 'profiler')
]
lapack = spec['lapack']