From 9bd9cc2c7b5342839b4af960b534c052ee0d47c6 Mon Sep 17 00:00:00 2001 From: Anton Kozhevnikov Date: Sat, 26 Jun 2021 19:25:15 +0200 Subject: swith profiler on/off (#24547) --- var/spack/repos/builtin/packages/sirius/package.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'] -- cgit v1.2.3-60-g2f50