summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCameron Smith <cwsmith@users.noreply.github.com>2019-01-30 16:19:38 -0500
committerPeter Scheibel <scheibel1@llnl.gov>2019-01-30 15:19:38 -0600
commit9d7f215e47f8aeecdf7ee0d4c79cfeb605cd3027 (patch)
treed815dbd26d2044562b5ebfdd192c15035afacca9
parent477d3fb479d807128d6f932e65bb9d8a093f35a3 (diff)
downloadspack-9d7f215e47f8aeecdf7ee0d4c79cfeb605cd3027.tar.gz
spack-9d7f215e47f8aeecdf7ee0d4c79cfeb605cd3027.tar.bz2
spack-9d7f215e47f8aeecdf7ee0d4c79cfeb605cd3027.tar.xz
spack-9d7f215e47f8aeecdf7ee0d4c79cfeb605cd3027.zip
zoltan: detect metis int64 variant (#10051)
Configure zoltan depending on metis int64 support
-rw-r--r--var/spack/repos/builtin/packages/zoltan/package.py4
1 files changed, 4 insertions, 0 deletions
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 @@ class Zoltan(Package):
.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))