# .bashrc
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# append this file to your .profile to set path according to machine
# type. you may wish to use this for your own programs (edit the last
# part to point to a different directory f.e. /bin/_$PVM_ARCH.
export PVM_ROOT=/usr/share/pvm3
export XPVM_ROOT=$PVM_ROOT/xpvm
if [ -z $PVM_ROOT ]; then
if [ -d /pvm3 ]; then
export PVM_ROOT=/pvm3
else print "Warning - PVM_ROOT not defined"
print "To use PVM, define PVM_ROOT and rerun your .profile" fi fi
if [ -n $PVM_ROOT ]; then
export PVM_ARCH=`$PVM_ROOT/lib/pvmgetarch`
# uncomment one of the following lines if you want the PVM commands
# directory to be added to your shell path.
export PATH=$PATH:$PVM_ROOT/lib # generic
# export PATH=$PATH:$PVM_ROOT/lib/$PVM_ARCH # arch-specific
# uncomment the following line if you want the PVM executable directory
# to be added to your shell path.
export PATH=$PATH:$PVM_ROOT/bin/$PVM_ARCH
export PATH=$PATH:$HOME/pvm3/bin/$PVM_ARCH
fi
A continuación se creará el archivo .pvmrc, en el cual se incluirán el nombre de los nodos que van a formar la PVM. Dicho archivo tendrá la siguiente estructura:
# example PVM console startup script
# copy this file to $HOME/.pvmrc
# command aliases
alias ? help
alias print_environment spawn -> /bin/env
alias h help
alias j jobs
alias t ps
alias tm trace
alias v version
# important for debugging
#
setenv PVM_EXPORT DISPLAY
# want to see these trace events by default
tm addhosts delhosts halt
tm pvm_mytid pvm_exit pvm_parent
tm send recv nrecv probe mcast trecv sendsig recvf
#
# inscripcion de los nodos que forman parte del cluster
#
add pc1
add pc2
version # print PVM release version
id # print console TID
conf
Seguidamente se modificará el fichero .rhosts incluyendo el nombre de los nodos que van a trabajar con la PVM.
pc0 front end
pc1
pc2