# 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` # switch ($OS) # case SunOS: # set OS = solaris # breaksw # case linux: # set OS = linux # breaksw # case Darwin: # set OS = Darwin # breaksw # default # set OS = linux # breaksw # endsw #Processor family # 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 # case arm64 | aarch64: # set PROC = arm64 # breaksw # default # set PROC = intel # breaksw # endsw # 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-x86_64' # breaksw # endsw # endif # else # if ($OS == Darwin) then # switch ($PROC) # case intel: # setenv BIRCH_PLATFORM 'osx-x86_64' # breaksw # case arm64 | aarch64: # setenv BIRCH_PLATFORM 'macos-arm64' # breaksw # case x86_64: # setenv BIRCH_PLATFORM 'osx-x86_64' # breaksw # default # setenv BIRCH_PLATFORM 'macos-arm64' # breaksw # endsw # endif # else # setenv BIRCH_PLATFORM 'linux-intel' # 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 linux-arm64 #setenv BIRCH_PLATFORM solaris-sparc #setenv BIRCH_PLATFORM solaris-amd64 #setenv BIRCH_PLATFORM osx-x86_64 #setenv BIRCH_PLATFORM macos-arm64 #setenv BIRCH_PLATFORM winxp-32 #setenv BIRCH_PLATFORM win7-64 # Method 3: determine platform from HOSTNAME # This section lets you choose the operating system # based on host name. Method 1 is preferable to Method 3. # 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 grid*: # setenv BIRCH_PLATFORM solaris-amd64 # breaksw # case merak|toliman: # setenv BIRCH_PLATFORM solaris-amd64 # breaksw # default: # setenv BIRCH_PLATFORM solaris-amd64 # breaksw # endsw