Skip to content

Instantly share code, notes, and snippets.

@ael-code
Last active September 26, 2017 10:09
Show Gist options
  • Save ael-code/8b96df968c64df60ec020c33740bba9a to your computer and use it in GitHub Desktop.
Save ael-code/8b96df968c64df60ec020c33740bba9a to your computer and use it in GitHub Desktop.
roortsim_run
#!/bin/bash
export RS_BUILD_DIR=/tmp/rsbuild
#export RS_BUILD_DIR=/nfs/site/home/macabral/devel/tmp/ROOT-Sim-install
echo "####### CONFIGURING #######"
echo "RS_BUILD_DIR=${RS_BUILD_DIR}"
autoreconf -if
./configure \
--prefix=${RS_BUILD_DIR} \
--enable-debug \
--with-mpi \
--disable-ult \
--disable-allocator \
--disable-rebinding \
--disable-numa \
--disable-ecs \
--disable-modules
echo "###### COMPILING RS-COMPILER #######"
make
echo "###### INSTALLING RS-COMPILER #######"
make install
echo "###### COMPILING PCS MODEL #######"
${RS_BUILD_DIR}/bin/rootsim-cc models/pcs/*.c -o pcs_model
echo "###### RUNNING MODEL #######"
mpirun --np 2 ./pcs_model --np 4 --nprc 16 --no-core-binding complete_calls 250
export RS_URL="https://github.com/ael-code/ROOT-Sim"
export RS_BRANCH="mpi_on_ecs"
export RS_BUILD_DIR=/tmp/rs/rs_build
export RS_SRC_DIR=/tmp/rs/rs_src
rm -fr /tmp/rs
mkdir -p /tmp/rs
echo "###### DOWNLOADING SOURCE #####"
git clone --depth 1 -b ${RS_BRANCH} ${RS_URL} ${RS_SRC_DIR}
cd ${RS_SRC_DIR}
echo "####### CONFIGURING #######"
echo "RS_BUILD_DIR=${RS_BUILD_DIR}"
autoreconf -if
./configure \
--prefix=${RS_BUILD_DIR} \
--enable-debug \
--with-mpi \
--disable-ult \
--disable-allocator \
--disable-rebinding \
--disable-numa \
--disable-ecs \
--disable-modules
echo "###### COMPILING RS-COMPILER #######"
make
echo "###### INSTALLING RS-COMPILER #######"
make install
echo "###### COMPILING PCS MODEL #######"
${RS_BUILD_DIR}/bin/rootsim-cc models/pcs/*.c -o pcs_model
echo "###### RUNNING MODEL #######"
mpirun --np 2 ./pcs_model --np 4 --nprc 16 --no-core-binding complete_calls 250
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment