#!/bin/bash #In RHEL 6.1: #As root: # ^^^^^ # Install java sdk and boost libraries via: yum -y install autoconf automake libtool perl sed ksh gcc gcc-c++ gcc-gfortran boost boost-devel java* yum -y install wget ghostscript BASEDIR=`pwd` BASEDIR=/usr/local cd ${BASEDIR} #Get ROSE: # ########### if [ ! -e ${BASEDIR}/rose-0.9.5a-without-EDG-15674.tar.gz ] ; then wget --tries=2 https://outreach.scidac.gov/frs/download.php/635/rose-0.9.5a-without-EDG-15674.tar.gz fi # If not available from outreach.scidac.gov; download from backup at hpcgroup.public.iastate.edu if [ ! -e ${BASEDIR}/rose-0.9.5a-without-EDG-15674.tar.gz ] ; then wget --tries=2 http://hpcgroup.public.iastate.edu/UPC-CHECK/rose-0.9.5a-without-EDG-15674.tar.gz fi if [ -e ${BASEDIR}/rose-0.9.5a-without-EDG-15674.tar.gz ] ; then tar -zxf ${BASEDIR}/rose-0.9.5a-without-EDG-15674.tar.gz else echo "Can't get rose-0.9.5a-without-EDG-15674.tar.gz from either" echo "https://outreach.scidac.gov/frs/download.php/635/rose-0.9.5a-without-EDG-15674.tar.gz" echo " or" echo "http://hpcgroup.public.iastate.edu/UPC-CHECK/rose-0.9.5a-without-EDG-15674.tar.gz" echo "Check internet connectivity or copy manually into ${BASEDIR}." echo "Exiting with RC 1 ....." exit 1 fi # (About 1 minute) cd rose-0.9.5a-15674/ #Issue mkdir compileTree cd compileTree SUFXJ="" ADRSZ=`uname -i` BLIB="/usr/lib" LD_LIBRARY_PATH=${LD_LIBRARY_PATH:-/usr/lib} if [ "x${ADRSZ}" = "xx86_64" ] ; then SUFXJ=".x86_64" export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/lib64/ BLIB=/usr/lib64 fi export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0${SUFXJ} JRE=`ls -d ${JAVA_HOME}/jre/lib/*/server` export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${JRE} export JAVA_HOME LD_LIBRARY_PATH ../configure --prefix=/usr/local/ --with-boost-libdir=${BLIB} --with-boost=/usr # (About 3 minutes) make -j 2 # (About 170 minutes ; maybe use make -j 8 instead) make install # (About 90 sec. ) #(If needed get berkley upc runtime and maybe translator) cd ${BASEDIR} # Obtain Berkeley UPC from upc.lbl.gov if [ ! -e berkeley_upc-2.12.2.tar.gz ] ; then wget --tries=2 http://upc.lbl.gov/download/release/berkeley_upc-2.12.2.tar.gz fi # If not available from upc.lbl.gov, obtain from backup at hpcgroup.public.iastate.edu if [ ! -e berkeley_upc-2.12.2.tar.gz ] ; then wget --tries=2 http://hpcgroup.public.iastate.edu/UPC-CHECK/berkeley_upc-2.12.2.tar.gz fi if [ -e berkeley_upc-2.12.2.tar.gz ] ; then tar -zxf berkeley_upc-2.12.2.tar.gz else echo "Can't get berkeley_upc-2.12.2.tar.gz from either" echo "http://upc.lbl.gov/download/release/berkeley_upc-2.12.2.tar.gz" echo " or" echo "http://hpcgroup.public.iastate.edu/UPC-CHECK/berkeley_upc-2.12.2.tar.gz" echo "Check internet connectivity or copy manually into ${BASEDIR}." echo "Exiting with RC 2 ....." exit 2 fi cd berkeley_upc-2.12.2 mkdir ${BASEDIR} ./configure --prefix=${BASEDIR} # ( About 2.5 minutes ) make -j 2 # (About 17 min. ; faster if make -j 4 used) make install # (About 15 sec. ) touch /etc/bashrc /etc/csh.login export PATH=${BASEDIR}/bin:${PATH}:./ echo "export PATH=${BASEDIR}/bin:${PATH}:./ " >> /etc/bashrc echo "setenv PATH ${BASEDIR}/bin:${PATH}:./ " >> /etc/csh.login #Get UPC-CHECK installed: cd ${BASEDIR} if [ ! -e UPC-CHECK.tar.gz ] ; then wget --tries=2 http://hpcgroup.public.iastate.edu/UPC-CHECK/UPC-CHECK.tar.gz fi if [ -e UPC-CHECK.tar.gz ] ; then tar -zxf UPC-CHECK.tar.gz else echo "Can't get UPC-CHECK.tar.gz from" echo "http://hpcgroup.public.iastate.edu/UPC-CHECK/UPC-CHECK.tar.gz" echo "Check internet connectivity or copy manually into ${BASEDIR}." echo "Exiting with RC 3 ....." exit 3 fi cd UPC-CHECK # ./configure # (About 5 sec) make clean export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${BASEDIR}/lib mkdir -p ${BASEDIR}/bin ${BASEDIR}/include ${BASEDIR}/lib time install_UPC-CHECK -p ${BASEDIR} -b ${BLIB} -r ${BASEDIR} # ( About 4 minutes) export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${BASEDIR}/lib:${BLIB}/lib:${BLIB} export PATH=${BASEDIR}/bin:${PATH}:./ touch /etc/ld.so.conf.d/upc-check.conf echo "${BASEDIR}/lib" >> /etc/ld.so.conf.d/upc-check.conf echo "${BLIB}" >> /etc/ld.so.conf.d/upc-check.conf echo "${JRE}" >> /etc/ld.so.conf.d/upc-check.conf echo '/usr/local/lib/' > /etc/ld.so.conf.d/rose.conf /sbin/ldconfig cd ${BASEDIR}/include time upcc -c -I./ upc_check_arg_err_support.upc upc_check_dl_support.upc upc_check_support.upc #env # Optional BUPC translator install # If the translator is installed, one can add -translator=${BASEDIR}/UPC_TRANS/targ # to the upcc command to use the local translator, and avoid the translation over the internet, INSTALL_BUPC_TRANSLATOR="YES" USE_BUPC_TRANSLATOR="YES" if [ "x${INSTALL_BUPC_TRANSLATOR}" == "xYES" ] ; then cd ${BASEDIR} if [ ! -e berkeley_upc_translator-2.12.2.tar.gz ] ; then wget --tries=2 http://upc.lbl.gov/download/release/berkeley_upc_translator-2.12.2.tar.gz fi if [ ! -e berkeley_upc_translator-2.12.2.tar.gz ] ; then wget --tries=2 http://hpcgroup.public.iastate.edu/UPC-CHECK/berkeley_upc_translator-2.12.2.tar.gz fi if [ -e berkeley_upc_translator-2.12.2.tar.gz ] ; then tar -zxf berkeley_upc_translator-2.12.2.tar.gz cd berkeley_upc_translator-2.12.2 gmake # ( About 8-9 minutes ) mkdir ${BASEDIR}/UPC_TRANS make install PREFIX=${BASEDIR}/UPC_TRANS else echo "Can't get berkeley_upc_translator-2.12.2.tar.gz from either" echo "http://upc.lbl.gov/download/release/berkeley_upc_translator-2.12.2.tar.gz" echo " or " echo "http://hpcgroup.public.iastate.edu/UPC-CHECK/berkeley_upc_translator-2.12.2.tar.gz" echo "Check internet connectivity or copy manually into ${BASEDIR}." echo "berkeley_upc_translator-2.12.2 not installed." fi fi #Get RTED_UPC tests cd ${BASEDIR} if [ ! -e RTED_UPC.tar.gz ] ; then wget --tries=2 http://rted.public.iastate.edu/UPC/RTED_UPC.tar.gz fi if [ ! -e RTED_UPC.tar.gz ] ; then wget --tries=2 http://hpcgroup.public.iastate.edu/UPC-CHECK/RTED_UPC.tar.gz fi if [ ! -e RTED_UPC.tar.gz ] ; then echo "Can't get RTED_UPC.tar.gz from either" echo "http://rted.public.iastate.edu/UPC/RTED_UPC.tar.gz" echo " or " echo "http://hpcgroup.public.iastate.edu/UPC-CHECK/RTED_UPC.tar.gz" echo "Check internet connectivity or copy manually into ${BASEDIR}." echo "Not running RTED_UPC tests." echo "Exiting with RC 4 ....." exit 4 else tar -zxf RTED_UPC.tar.gz #(Each less than 2 sec.) cd RTED_UPC/UPC cp CONFIGURATION.rhel6_berkleyupc.upcheck CONFIGURATION # Run tests for just the two sections for which UPC-CHECK was designed time run_tests_all A_Deadlcks F_Argmterr # (Takes about 75 minutes.) # or run for all sections: ### time run_tests_all # (Takes about 15 hours) # In either case a summary of scores by section appears at the # end of the run. # 0 means either no message, or a message that t not useful # 5 means a message that pinpoints the error and where it is # and extra information to help fix the problem. fi