# Platform-specific commands tailored to your local server # configuration. if [ $BIRCH_DEBUG -eq 1 ] then echo Running $BIRCH/local/admin/platform.profile.source fi # This file is called by $BIRCH/admin/profile.source right # after the value of $BIRCH is set. Further settings in # profile.source depend on values set here. # HOSTNAME is needed to put the name of the host into # the command prompt. It is also used for setting # BIRCH_PLATFORM by hostname (Method 3 below). if [ -f /usr/ucb/hostname ] then HOSTNAME=`/usr/ucb/hostname` else HOSTNAME=`hostname` fi #------------------- BIRCH PLATFORM ----------------------- # This section provides several alternative ways for # setting $BIRCH_PLATFORM, which tells the os-hardware # combination for the system to which you are currently # logged in. # # Method 1: automatic detection of the platform # If possible, use this method # Find out the following platform parameters: # operating system # processor family # Operating system # This one works on Solaris-sparc but not Solaris-amd64 #OS=`uname -s | tr -s '[:upper:]' '[:lower:]'` OS=`uname -s` case $OS in SunOS) OS=solaris ;; linux) OS=linux ;; *) OS=linux ;; esac # Processor family #PROC=`uname -p | tr -s '[:upper:]' '[:lower:]'` PROC=`uname -p` case $PROC in sparc) PROC=sparc ;; i686|i386|i86pc) PROC=intel ;; x86_64) PROC=x86_64 ;; *) PROC=intel ;; esac # Map the result to supported BIRCH platforms if [ "$OS" = "solaris" ] then case $PROC in sparc) BIRCH_PLATFORM='solaris-sparc' ;; intel) BIRCH_PLATFORM='solaris-amd64' ;; *) BIRCH_PLATFORM='solaris-sparc' ;; esac elif [ "$OS" = "linux" ] then case $PROC in intel) BIRCH_PLATFORM='linux-intel' ;; x86_64) BIRCH_PLATFORM='linux-x86_64' ;; *) BIRCH_PLATFORM='linux-intel' ;; esac else BIRCH_PLATFORM='linux-intel' fi # Method 2: single platform. This will work if you only # run BIRCH on one platform. # Uncomment a line if you only use a single platform #BIRCH_PLATFORM=linux-intel #BIRCH_PLATFORM=solaris-sparc #BIRCH_PLATFORM=solaris-amd64 # Method 3: determine platform from HOSTNAME # This section lets you choose the operating system # based on host name. # Platform-specific syntax is chosen based on BIRCH_PLATFORM. # (default = solaris-amd64) #case $HOSTNAME in # linux*|blues|ambient) # BIRCH_PLATFORM=linux-intel # ;; # antares|deneb|mira) # BIRCH_PLATFORM=solaris-sparc # ;; # grid*|merak|toliman) # BIRCH_PLATFORM=solaris-amd64 # ;; # *) # BIRCH_PLATFORM=solaris-sparc # ;; #esac export BIRCH_PLATFORM # ------------------------ THREADING ------------------------------ # On machines with multiple CPUs, threaded versions of fasta programs # are available. All end with _t. $THREADED is added to fasta program # names in wrappers found in $BIRCH/script THREADED="" # If you use more than one platform, uncomment this section # and edit accordingly. case $HOSTNAME in linux*) THREADED="" ;; antares|deneb|mira|polaris|merak|toliman|gaia|moon) THREADED="_t" ;; grid*|cc0*) THREADED="_t" ;; *) THREADED="" ;; esac export THREADED