From 9bd6d2132242555816e49479f8010dccf7dca8bd Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Wed, 19 Apr 2017 23:31:21 -0500 Subject: Add variant to mvapich2 to set size of rank bits (#3886) --- var/spack/repos/builtin/packages/mvapich2/package.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'var') 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: -- cgit v1.2.3-70-g09d2