Skip to content

Commit 5cf4b81

Browse files
authored
Ignore PSHM warning when testing co-locales on GASNet (#26611)
Ignore PSHM warning when testing co-locales on GASNet. GASNet will print a warning if PSHM is disabled and there are multiple processes on the same node (i.e., there are co-locales). This warning should be ignored when checking test output. [Reviewed by @jabraham17, thank you.]
2 parents 5a41e6f + ecb99b0 commit 5cf4b81

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

util/cron/common-gasnet.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export CHPL_COMM=gasnet
1212
export GASNET_SPAWNFN=L
1313
export GASNET_ROUTE_OUTPUT=0
1414
export CHPL_GASNET_CFG_OPTIONS=--disable-ibv
15+
export CHPL_SYSTEM_PREDIFF=$CHPL_HOME/util/test/prediff-for-gasnet
1516

1617
# Bump the timeout slightly just because we're oversubscribed
1718
export CHPL_TEST_TIMEOUT=500

util/cron/common-hpe-apollo.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ UTIL_CRON_DIR=$(cd $(dirname ${BASH_SOURCE[0]}) ; pwd)
77
export CHPL_HOST_PLATFORM=hpe-apollo
88
export CHPL_TEST_LAUNCHCMD=\$CHPL_HOME/util/test/chpl_launchcmd.py
99
export CHPL_LAUNCHER_TIMEOUT=pbs
10+
export CHPL_SYSTEM_PREDIFF=$CHPL_HOME/util/test/prediff-for-gasnet
1011

1112
module purge
1213
source $UTIL_CRON_DIR/load-base-deps.bash

util/test/prediff-for-gasnet

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env python3
2+
#
3+
# Remove warning about PSHM being disabled when there are co-locales.
4+
#
5+
import sys, re
6+
7+
outfname = sys.argv[2]
8+
with open(outfname, "r") as f:
9+
outText = f.read()
10+
11+
msg = r"""\*\*\* WARNING \(proc 0\): Running with multiple processes per host without shared-memory communication support \(PSHM\). This can significantly reduce performance. Please re-configure GASNet using `--enable-pshm` to enable fast intra-host comms.
12+
"""
13+
outText = re.sub(msg, "", outText, flags = re.MULTILINE)
14+
15+
with open(outfname, "w") as f:
16+
f.write(outText)

0 commit comments

Comments
 (0)