Source

modulefiles / matlab / 2011b

#%Module 1.0
#
#  Matlab  module for use with 'environment-modules' package on helix:
# 

module-whatis "Sets up Matlab 2011b on helix/biowulf cluster"


if { [file exists "/bin/uname"] } {
  set hostname [exec /bin/uname -n]
  if { $hostname == "helix.nih.gov" }  {
    # Set aliases for matlab 
    set-alias "matlab" "/usr/local/matlab_2011b/bin/matlab -singleCompThread"
    set-alias "mcc" "/usr/local/matlab_2011b/bin/mcc"
 } elseif { $hostname == "biowulf.nih.gov" } {
       # Matlab should not run on the biowulf head node
       puts stderr "Matlab sessions are not allowed on the Biowulf login node."
       puts stderr "Please submit a batch job, or allocate an interactive"
       puts stderr "node. See http://biowulf.nih.gov/apps/matlab.html for"
       puts stderr "information on using matlab on Biowulf."
       puts stderr " "
       break
   } else {
       set-alias "matlab" "/usr/local/matlab_2011b/bin/matlab"
       set-alias "mcc" "/usr/local/matlab_2011b/bin/mcc"       
      }
  }