From f3b57046633556ab28db66df637c51b5fb42794f Mon Sep 17 00:00:00 2001 From: Timothy Brown Date: Fri, 10 Dec 2021 15:58:49 -0700 Subject: [parallelio] add variant to turn off timing messages. (#27590) * [parallelio] add variant to turn off timing messages. --- var/spack/repos/builtin/packages/parallelio/package.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'var') 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 -- cgit v1.2.3-70-g09d2