# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
    . /etc/bashrc
fi

# User specific aliases and functions

H=/home/ec2-user
OM=$H/openmpi
RB=$H/R-2.14.1/bin

PATH=$OM/bin:$RB:$PATH
export PATH

LD_LIBRARY_PATH=$OM/lib
export LD_LIBRARY_PATH

# KP is the keypair used to access the slaves. It is NOT the same
# as the keypair specified when the ec2 instance is launched. (The public key
# from that pair is in .ssh/authorized_keys.)
KP=$H/.ssh/ppe-keypair
OMPI_MCA_plm_rsh_agent="ssh -i $KP -l ec2-user"
export OMPI_MCA_plm_rsh_agent

OMPI_MCA_orte_default_hostfile=$H/ompi-hostfile
export OMPI_MCA_orte_default_hostfile
