Skip to content

Commit 42154bc

Browse files
committed
Also support Distributed S-Net with the MPI layer.
Explicitly tell the user to copy the SNet Compiler to a suitable directory in PATH.
1 parent fdcd6d3 commit 42154bc

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

content/install-snet

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
# to your liking before invoking this script.
66
#
77

8-
# Abort on error
9-
set -e
10-
118
# Where to install PCL to
129
export PCL_PREFIX=$PWD/build
1310

@@ -30,6 +27,14 @@ export SNET_REPO=https://github.com/snetdev/snet-rts.git
3027
export COMPILER_LINUX_64="https://raw.github.com/snetdev/releases/master/2013/snetc-20130626.x86_64.bz2"
3128
export COMPILER_LINUX_32="https://raw.github.com/snetdev/releases/master/2013/snetc-20130626.i686.bz2"
3229

30+
# Whether to disable/enable Distributed S-Net with MPI. Enable this only when
31+
# you have a working installation of MPI with a working mpicc + mpirun.
32+
export DIST_MPI=--enable-dist-mpi
33+
34+
# Abort on error
35+
set -e
36+
37+
# Construct destination directories, if needed.
3338
mkdir -p $PCL_PREFIX $LPEL_PREFIX $SNET_PREFIX
3439

3540
function get_pcl () {
@@ -104,7 +109,7 @@ function build_snet_rts () {
104109

105110
./configure --with-lpel-includes=$LPEL_PREFIX/include \
106111
--with-lpel-libs=$lpel \
107-
--disable-dist-mpi \
112+
$DIST_MPI \
108113
--prefix=$SNET_PREFIX
109114

110115
make
@@ -129,6 +134,9 @@ function get_snetc () {
129134
fi
130135
bunzip2 "$bz2"
131136
chmod +x "$snc"
137+
echo
138+
echo "### Please move $snc to a directory in your PATH as snetc."
139+
echo
132140
fi
133141
}
134142

0 commit comments

Comments
 (0)