summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTimothy Brown <t-brown@users.noreply.github.com>2021-12-10 15:58:49 -0700
committerGitHub <noreply@github.com>2021-12-10 14:58:49 -0800
commitf3b57046633556ab28db66df637c51b5fb42794f (patch)
treedbe4997d82c3faff19ca1304d1fb0e24e0768098 /var
parentd5773ac5bff61b504ea46a7c31acd8d05d9d2f79 (diff)
downloadspack-f3b57046633556ab28db66df637c51b5fb42794f.tar.gz
spack-f3b57046633556ab28db66df637c51b5fb42794f.tar.bz2
spack-f3b57046633556ab28db66df637c51b5fb42794f.tar.xz
spack-f3b57046633556ab28db66df637c51b5fb42794f.zip
[parallelio] add variant to turn off timing messages. (#27590)
* [parallelio] add variant to turn off timing messages.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/parallelio/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/parallelio/package.py b/var/spack/repos/builtin/packages/parallelio/package.py
index 601f91089e..6ab05344f8 100644
--- a/var/spack/repos/builtin/packages/parallelio/package.py
+++ b/var/spack/repos/builtin/packages/parallelio/package.py
@@ -20,6 +20,7 @@ class Parallelio(CMakePackage):
version('2_5_2', sha256='935bc120ef3bf4fe09fb8bfdf788d05fb201a125d7346bf6b09e27ac3b5f345c')
variant('pnetcdf', default=False, description='enable pnetcdf')
+ variant('timing', default=False, description='enable GPTL timing')
depends_on('mpi')
depends_on('netcdf-c +mpi', type='link')
@@ -35,6 +36,7 @@ class Parallelio(CMakePackage):
def cmake_args(self):
define = self.define
+ define_from_variant = self.define_from_variant
spec = self.spec
env['CC'] = spec['mpi'].mpicc
env['FC'] = spec['mpi'].mpifc
@@ -50,4 +52,7 @@ class Parallelio(CMakePackage):
define('PnetCDF_C_PATH', spec['parallel-netcdf'].prefix),
define('PnetCDF_Fortran_PATH', spec['parallel-netcdf'].prefix),
])
+ args.extend([
+ define_from_variant('PIO_ENABLE_TIMING', 'timing'),
+ ])
return args