summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
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