# Platform-specific commands tailored to your local server # configuration. if ( $BIRCH_DEBUG == 1 ) echo Running platform.source # This file is called by $BIRCH/admin/cshrc.source right # after the value of $BIRCH is set. Further settings in # cshrc.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 (-e /usr/ucb/hostname) then set HOSTNAME = `/usr/ucb/hostname` else set HOSTNAME = `hostname` endif #------------------- 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 #set OS = `uname -s | tr -s '[:upper:]' '[:lower:]'` set OS = `uname -s` switch ($OS) case SunOS: set OS = solaris breaksw case linux: set OS = linux breaksw default set OS = linux breaksw endsw if ( $BIRCH_DEBUG == 1 ) echo 'OS = ' $OS # Processor family #set PROC = `uname -p | tr -s '[:upper:]' '[:lower:]'` set PROC = `uname -p` switch ($PROC) case sparc: set PROC = sparc breaksw case i686: set PROC = intel breaksw case i386: set PROC = intel breaksw case i86pc: set PROC = intel breaksw case x86_64: set PROC = x86_64 breaksw default set PROC = intel breaksw endsw if ( $BIRCH_DEBUG == 1 ) echo 'processor = ' $PROC # Map the result to supported BIRCH platforms if ($OS == solaris) then switch ($PROC) case sparc: setenv BIRCH_PLATFORM 'solaris-sparc' breaksw case intel: setenv BIRCH_PLATFORM 'solaris-amd64' breaksw default setenv BIRCH_PLATFORM 'solaris-sparc' breaksw endsw else if ($OS == linux) then switch ($PROC) case intel: setenv BIRCH_PLATFORM 'linux-intel' breaksw case x86_64: setenv BIRCH_PLATFORM 'linux-x86_64' breaksw default setenv BIRCH_PLATFORM 'linux-intel' breaksw endsw endif else setenv BIRCH_PLATFORM 'linux-intel' endif endif # 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 #setenv BIRCH_PLATFORM linux-intel setenv BIRCH_PLATFORM linux-x86_64 #setenv BIRCH_PLATFORM solaris-sparc #setenv 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) #switch ($HOSTNAME) # case antares|deneb|mira|polaris: # setenv BIRCH_PLATFORM solaris-sparc # breaksw # case regulus: # setenv BIRCH_PLATFORM AIX # breaksw # case ambient: # setenv BIRCH_PLATFORM linux-intel # breaksw # case blues: # setenv BIRCH_PLATFORM linux-intel # breaksw # case linux*: # setenv BIRCH_PLATFORM linux-intel # breaksw # case grid*: # setenv BIRCH_PLATFORM solaris-amd64 # breaksw # case merak: # setenv BIRCH_PLATFORM solaris-amd64 # breaksw # case toliman: # setenv BIRCH_PLATFORM solaris-amd64 # breaksw # default: # setenv BIRCH_PLATFORM solaris-amd64 # breaksw #endsw if ( $BIRCH_DEBUG == 1 ) echo 'BIRCH_PLATFORM = ' $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 .GDEmenus. # Note that setenv, and not set, must be used, to export THREADED # so that the Bourne shell can use it. setenv THREADED "" switch ($HOSTNAME) case antares|deneb|mira|polaris|merak|toliman|gaia|moon: setenv THREADED "_t" breaksw case grid*|cc0*: setenv THREADED "_t" breaksw default: setenv THREADED "" breaksw endsw