Skip to content

Instantly share code, notes, and snippets.

Dependencies

$ sudo apt-get install -y \
        git wget \
        make automake libtool \
        gcc g++ \
        libboost-all-dev \
        flex bison ghostscript
$ g++ MyRoseTool.C -lrose -o MyRoseTool
$ ./MyRoseTool hello.C
$ ./a.out
Hello, ROSE!
#!/bin/bash -e
umask a+rx
: ${COMPILER_SPEC:=%intel@16.0.3}
: ${VARIANT:=}
: ${BOOST_SPEC:="boost@1.52.0 %intel@16.0.3"}
: ${JENKINS_WORKSPACE:="$(pwd)"}
: ${ROSE_BRANCH:=origin/master}
: ${ROSE_BRANCH_VARIANT_NAME:=}
@rosecompiler
rosecompiler / install-rose-rhel-7.3.sh
Last active May 12, 2017 15:42
Used on curse.llnl.gov
#!/bin/bash -ex
#
# Author: Justin Too <justin@doubleotoo.com>
# Date: November 28, 2016
#
# Copied from original rhel 7.1 script tested on Amazon Web Services (AWS) EC2 image: ami-d1315fb1 (~35 minutes).
# - m4.2xlarge and m4.4xlarge
# - 30 GB EBS volume
: ${DESTDIR:=~/opt}
#!/bin/bash -e
umask a+rx
: ${JENKINS_WORKSPACE:="$(pwd)"}
: ${BOOST_VERSION:=1.56.0}
export ROSE_RELEASES_HOME="/collab/usr/global/tools/rose/release"
export SPACK_HOME="${ROSE_RELEASES_HOME}/.spack"
@rosecompiler
rosecompiler / install.sh
Created December 3, 2015 20:54
LC installation script
#!/bin/bash
source "$(dirname "${0}")/setup.sh" || exit 1
source /usr/local/tools/dotkit/init.sh || exit 1
use mvapich2-intel-1.9 || exit 1
use gcc-4.6.1 || exit 1
source /collab/usr/global/tools/rose/opt/chaos_5_x86_64_ib/boost/1_54_0/gcc/4.6.1/setup.sh || exit 1
: ${JAVA_SERVER_LIB:=}
#!/bin/bash
#
# Usage:
#
# $ bash refactor.sh
#------------------------------------------------------------------------------
: ${REFACTOR_HOME:="$(cd "$(dirname "$0")" && pwd)/refactor"}
: ${REPOS_HOME:="${REFACTOR_HOME}/repos"}
: ${ROSE_SOURCE:="${REFACTOR_HOME}/rose"}
#!/bin/bash -e
#
# Usage:
# $ ./install-boost <version: x.xx.x>
#
# Description:
# Installs a static release variant of the Boost C++ Libraries
#
# Website:
# http://www.boost.org/
#!/bin/bash -e
#-------------------------------------------------------------------------------
# Default values
#-------------------------------------------------------------------------------
: ${SPACK_VERSION:=$1}
: ${SPACK_DOWNLOAD_URL:=$2}
: ${SPACK_DOWNLOAD_URL:="https://github.com/scalability-llnl/spack.git"}
: ${ENVIRONMENT_MODULES_VERSION:=3.2.10}
#!/bin/bash -e
#-------------------------------------------------------------------------------
# Default values
#-------------------------------------------------------------------------------
: ${ENVIRONMENT_MODULES_VERSION:=$1}
: ${TCL_VERSION:=8.6.4}
echo "[INFO] environment_modules '$ENVIRONMENT_MODULES_VERSION'"