Skip to content

Commit

Permalink
setup remots in init-sst
Browse files Browse the repository at this point in the history
  • Loading branch information
plavin committed Apr 3, 2024
1 parent 7fa69e6 commit d3420d6
Showing 1 changed file with 49 additions and 28 deletions.
77 changes: 49 additions & 28 deletions scripts/init-sst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,38 @@ then
exit
fi

mkdir -p $SCRIPT_DIR/autotools
cd autotools
wget https://ftp.gnu.org/gnu/m4/m4-$M4_VER.tar.xz
wget https://ftp.gnu.org/gnu/autoconf/autoconf-$AC_VER.tar.xz
wget https://ftp.gnu.org/gnu/automake/automake-$AM_VER.tar.xz
wget https://ftp.gnu.org/gnu/libtool/libtool-$LT_VER.tar.xz

tar xf m4-$M4_VER.tar.xz
tar xf autoconf-$AC_VER.tar.xz
tar xf automake-$AM_VER.tar.xz
tar xf libtool-$LT_VER.tar.xz

cd m4-$M4_VER
./configure --prefix=$SST_INSTALL
make all install

cd ../autoconf-$AC_VER
./configure --prefix=$SST_INSTALL
make all install

cd ../automake-$AM_VER
./configure --prefix=$SST_INSTALL
make all install

cd ../libtool-$LT_VER
./configure --prefix=$SST_INSTALL
make all install
if [ ! -d "$SCRIPT_DIR/autotools" ];
then
mkdir -p $SCRIPT_DIR/autotools
cd autotools
wget https://ftp.gnu.org/gnu/m4/m4-$M4_VER.tar.xz
wget https://ftp.gnu.org/gnu/autoconf/autoconf-$AC_VER.tar.xz
wget https://ftp.gnu.org/gnu/automake/automake-$AM_VER.tar.xz
wget https://ftp.gnu.org/gnu/libtool/libtool-$LT_VER.tar.xz

tar xf m4-$M4_VER.tar.xz
tar xf autoconf-$AC_VER.tar.xz
tar xf automake-$AM_VER.tar.xz
tar xf libtool-$LT_VER.tar.xz

cd m4-$M4_VER
./configure --prefix=$SST_INSTALL
make all install

cd ../autoconf-$AC_VER
./configure --prefix=$SST_INSTALL
make all install

cd ../automake-$AM_VER
./configure --prefix=$SST_INSTALL
make all install

cd ../libtool-$LT_VER
./configure --prefix=$SST_INSTALL
make all install
else
echo "The autotools directory already exists. Skipping."
fi

cd $SCRIPT_DIR

Expand Down Expand Up @@ -72,9 +77,25 @@ cd $SCRIPT_DIR

if [ ! -d "./sst-elements" ];
then
git clone [email protected]:sstsimulator/sst-elements.git
git clone [email protected]:plavin/sst-elements.git
cd sst-elements
git switch $ELEMENTS_BRANCH
git remote add sst-official [email protected]:sstsimulator/sst-elements.git
git pull --all
git branch devel --set-upstream-to sst-official/devel
git pull

for elem in balar ember firefly gensa hermes iris llyr mask-mpi mercury osseous samba simpleElementExample simpleSimulation thornhill vanadis zodiac;
do
cd src/sst/elements/$elem
touch .ignore
cd $SCRIPT_DIR/sst-elements
done

echo "*.inc" >> .git/info/exclude
echo "*~" >> .git/info/exclude
echo "*.so" >> .git/info/exclude

./autogen.sh
./configure --prefix=$SST_INSTALL --with-pin=$INTEL_PIN_DIRECTORY
make -j8 install
Expand Down

0 comments on commit d3420d6

Please sign in to comment.