Changeset 2263 in /cluster/svnroot


Ignore:
Timestamp:
Mar 18, 2010 5:59:30 PM (11 years ago)
Author:
fitz
Message:

Refinements on HPL build process (#468).

Location:
bccd-ng/branches/fitz-devel/trees/home/bccd/hpl
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/fitz-devel/trees/home/bccd/hpl/hpl.build

    r2220 r2263  
    22#
    33# Script to build HPL based on sources pulled from SERVER.
    4 # To save space on the BCCD itself, this build of HPL is configured
    5 # to build against the locally installed linear algebra libraries.
     4# To save space on the BCCD itself, this build of HPL is configured to build
     5# against the locally installed linear algebra libraries.
     6#
     7# NOTE: This script deletes the hpl-2.0 directory and starts clean from the
     8# hpl tar. If you just want to rebuild, cd to hpl-2.0 and type "make arch=BCCD"
    69
    7 SERVER="cluster.earlham.edu"
    810TAR="hpl-2.0.tar.gz"
    9 URL="http://$SERVER/~fitz/lf-hpl"
    1011ARCH="BCCD"
    1112MAKE="Make.$ARCH"
     13DIR=`basename $TAR .tar.gz`
     14OUT="build.out"
    1215
    1316cd $HOME/hpl
    14 rm $TAR
    15 wget -c $URL/$TAR
     17rm -fr $DIR
    1618
    17 rm -fr `basename $TAR .tar.gz`
     19echo "---> Extracting HPL source"
    1820tar xf $TAR
     21cp $MAKE $DIR/
    1922
    20 cd `basename $TAR .tar.gz`
    21 wget -c $URL/$MAKE
     23echo "---> Building HPL (output in $DIR/$OUT)"
     24cd $DIR
     25make arch=$ARCH &> $OUT
     26if [ $? != 0 ]; then exit 1; fi
    2227
    23 make arch=$ARCH
     28cd $HOME/hpl
     29echo "---> Configuring HPL.dat"
     30./hpl.configure > `basename $TAR .tar.gz`/bin/$ARCH/HPL.dat.BCCD
     31if [ $? != 0 ]; then exit 1; fi
     32
     33echo
     34echo "Done. You'll probably want to rename HPL.dat.BCCD to HPL.dat to run."
     35echo "To run:"
     36echo -e "\t$ cd $DIR/bin/$ARCH/"
     37echo -e "\t$ mpirun -np <N> ~/machines ./xhpl"
     38echo -e "\t\t# Where N is the number of cores in your cluster (P*Q in HPL.dat)"
  • bccd-ng/branches/fitz-devel/trees/home/bccd/hpl/hpl.configure

    r2233 r2263  
    4343                system("/bin/bccd-snarfhosts $hosts");
    4444                chomp($nodes = `cat $hosts | wc -l`);
     45                system("rm $hosts");
    4546        } else { # if not BCCD, prompt for nodes
    4647                $nodes = promptInt("Nodes in the cluster: ");
     
    5758        if (-f "/proc/meminfo") {
    5859                $mem_raw=`grep ^MemTotal /proc/meminfo`;
    59                 (my $r, $mem, $unit) = split(/\s/, $mem_raw, 3);
     60                (my $r, $mem, $unit) = split(/\s+/, $mem_raw, 3);
    6061
    6162                if ($unit == "kB") {
Note: See TracChangeset for help on using the changeset viewer.