Changeset 147

Show
Ignore:
Timestamp:
06/08/07 15:44:21
Author:
apokayi
Message:

fix some issues in the Makefile and add the clean-up to the the script

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • guts_npb/Makefile.in

    r137 r147  
    2323# Global *compile time* flags for C programs 
    2424#--------------------------------------------------------------------------- 
    25 CFLAGS  = -T ${NP} -network=mpi 
     25CFLAGS  = -T ${NP}  
    2626 
    2727#--------------------------------------------------------------------------- 
     
    2929# size usually go here. 
    3030#--------------------------------------------------------------------------- 
    31 CLINKFLAGS = -T ${NP} -network=mpi 
     31CLINKFLAGS = -T ${NP}  
    3232 
    3333#--------------------------------------------------------------------------- 
  • guts_npb/guts_npb.sh

    r144 r147  
    1414        exit 
    1515else 
    16         make CLASS=$1 NP=$2 >>compile.out 2>compile.errout 
     16        make CLASS=$2 NP=$1  
    1717 
    1818        if test $? -eq 0 ; then 
    1919                echo "Compilation was SUCCESSFUL for the kernel MG Class [$2]" 
    2020                echo "Now the kernel will be run for ${NP} threads ..." 
    21                 cd ../bin 
    2221                RUN=`eval echo "upcrun -qn $1 mg.$2.$1"` 
    2322                echo $RUN 
     
    3534        fi 
    3635fi 
     36# do some cleanup at the end 
     37make clean 
     38rm -rf mg.$2.$1 
     39rm -rf ../sys/setparams