summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2017-04-19 23:31:21 -0500
committerTodd Gamblin <tgamblin@llnl.gov>2017-04-19 21:31:21 -0700
commit9bd6d2132242555816e49479f8010dccf7dca8bd (patch)
treee3b8d154805364a897e12faffb63ea6a4f827959
parent186d1f4511c8aa3bc5ce661b1e883db10e20958a (diff)
downloadspack-9bd6d2132242555816e49479f8010dccf7dca8bd.tar.gz
spack-9bd6d2132242555816e49479f8010dccf7dca8bd.tar.bz2
spack-9bd6d2132242555816e49479f8010dccf7dca8bd.tar.xz
spack-9bd6d2132242555816e49479f8010dccf7dca8bd.zip
Add variant to mvapich2 to set size of rank bits (#3886)
-rw-r--r--var/spack/repos/builtin/packages/mvapich2/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mvapich2/package.py b/var/spack/repos/builtin/packages/mvapich2/package.py
index e3f6e5f6a6..d952165ac1 100644
--- a/var/spack/repos/builtin/packages/mvapich2/package.py
+++ b/var/spack/repos/builtin/packages/mvapich2/package.py
@@ -58,6 +58,11 @@ class Mvapich2(Package):
variant('threads', default='multiple',
description='Control the level of thread support')
+ # 32 is needed when job size exceeds 32768 cores
+ variant('ch3_rank_bits', default=32,
+ description='Number of bits allocated to the rank field (16 or 32)'
+ )
+
##########
# TODO : Process managers should be grouped into the same variant,
# as soon as variant capabilities will be extended See
@@ -262,6 +267,8 @@ class Mvapich2(Package):
"--enable-romio",
"--disable-silent-rules",
"--enable-threads={0}".format(spec.variants['threads'].value),
+ "--with-ch3-rank-bits={0}".format(
+ spec.variants['ch3_rank_bits'].value),
]
if self.compiler.f77 and self.compiler.fc: