Changeset 26f52a for util


Ignore:
Timestamp:
Oct 12, 2008, 4:02:25 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
51d33c5
Parents:
45d5cc
Message:

local machines fil contains now one "localhost" line per found processor (via /proc/cpuinfo)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • util/src/dynamicANOVA.sh.in

    r45d5cc r26f52a  
    122122PBS_NODEFILE="${DIR}/machines"
    123123if [ ! -e $PBS_NODEFILE ]; then
     124        i=1
     125        cpus=`cat /proc/cpuinfo | grep processor | wc -l`
    124126        echo "localhost" >$PBS_NODEFILE
     127        while [ $i -lt $cpus ]; do      # add one localhost per cpu to machines file
     128                echo "localhost" >>$PBS_NODEFILE
     129                let i=$i+1
     130        done
    125131fi
    126132
Note: See TracChangeset for help on using the changeset viewer.