X Tutup
Skip to content

Commit 9bd6d21

Browse files
adamjstewarttgamblin
authored andcommitted
Add variant to mvapich2 to set size of rank bits (spack#3886)
1 parent 186d1f4 commit 9bd6d21

File tree

1 file changed

+7
-0
lines changed
  • var/spack/repos/builtin/packages/mvapich2

1 file changed

+7
-0
lines changed

var/spack/repos/builtin/packages/mvapich2/package.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ class Mvapich2(Package):
5858
variant('threads', default='multiple',
5959
description='Control the level of thread support')
6060

61+
# 32 is needed when job size exceeds 32768 cores
62+
variant('ch3_rank_bits', default=32,
63+
description='Number of bits allocated to the rank field (16 or 32)'
64+
)
65+
6166
##########
6267
# TODO : Process managers should be grouped into the same variant,
6368
# as soon as variant capabilities will be extended See
@@ -262,6 +267,8 @@ def install(self, spec, prefix):
262267
"--enable-romio",
263268
"--disable-silent-rules",
264269
"--enable-threads={0}".format(spec.variants['threads'].value),
270+
"--with-ch3-rank-bits={0}".format(
271+
spec.variants['ch3_rank_bits'].value),
265272
]
266273

267274
if self.compiler.f77 and self.compiler.fc:

0 commit comments

Comments
 (0)
X Tutup