From 9d7f215e47f8aeecdf7ee0d4c79cfeb605cd3027 Mon Sep 17 00:00:00 2001 From: Cameron Smith Date: Wed, 30 Jan 2019 16:19:38 -0500 Subject: [PATCH] zoltan: detect metis int64 variant (#10051) Configure zoltan depending on metis int64 support --- var/spack/repos/builtin/packages/zoltan/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/spack/repos/builtin/packages/zoltan/package.py b/var/spack/repos/builtin/packages/zoltan/package.py index 2c536a4f0a..4437e8499f 100644 --- a/var/spack/repos/builtin/packages/zoltan/package.py +++ b/var/spack/repos/builtin/packages/zoltan/package.py @@ -79,6 +79,10 @@ def install(self, spec, prefix): .format(spec['metis'].prefix.include)) config_args.append('--with-ldflags=-L{0}' .format(spec['metis'].prefix.lib)) + if '+int64' in spec['metis']: + config_args.append('--with-id-type=ulong') + else: + config_args.append('--with-id-type=uint') if '+mpi' in spec: config_args.append('CC={0}'.format(spec['mpi'].mpicc))