IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16306


Ignore:
Timestamp:
Feb 4, 2008, 6:59:30 PM (18 years ago)
Author:
eugene
Message:

fixed various parallel / PARALLEL entries, added cluster init

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/pantasks.pro

    r16298 r16306  
    2424$DB:n = 0
    2525
    26 if ($NEBULOUS)
    27  $default_host     = anyhost
    28  $default_volume   = none
    29  # $default_host     = ipp004
    30  # $workdir_template = neb:///@HOST@-v0
    31  # $default_volume   = ipp004-v0
    32  # $volume_template  =
    33 else
    34  $default_host     = anyhost
    35 end
     26# very basic values: set these with init.copy.mhpcc
     27$default_host     = anyhost
     28$workdir_template = `pwd`
    3629
    3730# user function to add databases by name (avoids duplicates)
     
    6962  end
    7063
    71 ### XXX There is a bug in the below "list DB -del $1" line.
    72   echo "This function doesn't work"
    73 #  list DB -del $1
     64  list DB -del $1
    7465end
    7566
    7667macro init.cluster.po
    77   $parallel = 1
     68  $PARALLEL = 1
    7869  controller exit true
    7970
     
    10798
    10899macro init.cluster.sn
    109   $parallel = 1
     100  $PARALLEL = 1
    110101  controller exit true
    111102  controller host add sn2
     
    123114end
    124115
     116macro init.cluster.mhpcc
     117  $PARALLEL = 1
     118  controller exit true
     119  controller host add ipp005
     120  controller host add ipp006
     121  controller host add ipp007
     122  controller host add ipp008
     123  controller host add ipp009
     124  controller host add ipp010
     125  controller host add ipp011
     126  controller host add ipp016
     127  controller host add ipp020
     128  controller host add ipp021
     129end
     130
     131macro init.copy.mhpcc
     132 if ($0 != 2)
     133   echo "USAGE: init.copy.mhpcc (nebulous)"
     134   echo "nebulous may be 'on' or 'off'"
     135   break
     136 end
     137
     138 if (("$1" != "on") && ("$1" != "off"))
     139   echo "USAGE: init.copy.mhpcc (nebulous)"
     140   echo "nebulous may be 'on' or 'off'"
     141   break
     142 end
     143 
     144 # the templates are used if we have a class_id/host relationship;
     145 # if none is found, the default values are used
     146 # XXX not sure how to handle the .N value if we need to use more than one
     147 # XXX this stuff should all be placed in a 'site' config file
     148
     149 if ("$1" == "on")
     150  $NEBULOUS = 1
     151  $default_host     = ipp004
     152  $workdir_template = neb://@HOST@.0
     153 else
     154  $NEBULOUS = 0
     155  $default_host     = ipp004
     156  $workdir_template = /data/@HOST@.0
     157 end
     158end
     159
    125160macro init.simtest.local
    126161  list DB -add simtest
    127   $parallel = 0
     162  $PARALLEL = 0
    128163  controller exit true
    129164end
     
    131166macro init.simtest.default.db
    132167  $host = `hostname`
    133   if ($parallel)
     168  if ($PARALLEL)
    134169    controller exit true
    135170    controller host add $host
     
    141176
    142177  $host = `hostname`
    143   if ($parallel)
     178  if ($PARALLEL)
    144179    controller exit true
    145180    controller host add $host
     
    355390  if ($0 != 6)
    356391    echo "USAGE: set.workdir.by.camera (camera) (class_id) (template) (default) (varname)"
    357     echo " uses global variable NEBULOUS to determine if nebulous is active"
    358392    break
    359393  end
     
    412446  end
    413447
    414   if (not($parallel))
     448  if (not($PARALLEL))
    415449    host local
    416450    return
     
    427461end
    428462
     463macro load.chiphost.table
     464  queueload tmp -x "cat $MODULES:0/chiphosts.config"
     465  ipptool2book tmp chiphosts -key camera
     466end
     467
    429468macro check.globals
    430469  if ($?NETWORK == 0)
Note: See TracChangeset for help on using the changeset viewer.