#!/bin/csh -f

#BELOW you request the CPUs
#PBS -l nodes=13:ppn=8

#PBS -j oe
#PBS -o "1.log"

cd $PBS_O_WORKDIR

setenv PATH /usr/local/motifEM/pattern_matching:/usr/local/motifEM/pattern_matching/MPI_implementation/:/usr/local/motifEM/pattern_matching/scripts:/usr/local/motifEM/pattern_matching/utility_codes:$PATH
setenv LD_LIBRARY_PATH /usr/local/motifEM/intel/mkl/9.1.023/lib/em64t:$LD_LIBRARY_PATH
setenv PATH /usr/local/motifEM/mpich2-1.3.2p1/bin:$PATH 
setenv LD_LIBRARY_PATH /usr/local/motifEM/mpich2-1.3.2p1/lib:$LD_LIBRARY_PATH

#NOTE, the number of CPUs that was requested earlier was 13*8=104. So that becomes "-n 104" below
mpiexec -n 104 motifem.svds.kps
mpiexec -n 104 motifem 

