8bdccc2e479cb7024d0059298a421cb1883ce3e8
[ppam-mpi.git] / code / ppam.sh
1 #!/bin/bash
2 #PBS -l walltime=00:05:00
3 #PBS -l nodes=4:ppn=4,pmem=1gb
4 #PBS -o output.txt
5 #PBS -e error.txt
6
7 WORKDIR="/workdir/auder/ppam_mpi/src"
8 cd $WORKDIR
9
10 rm -f output.txt
11 rm -f error.txt
12
13 saveLibPath=$LD_LIBRARY_PATH
14 LD_LIBRARY_PATH=/workdir/cds/lib:/opt/openmpi/lib:$LD_LIBRARY_PATH
15 export LD_LIBRARY_PATH
16
17 # ppam args (in case of clustering) =
18 # 1: path to binary dataset
19 # 2: series per processor
20 # 3: number of clusters
21 # 4: boolean to randomize series sampling
22 # 5: type of distance (1 for L1, 2 for L2...)
23 mpirun -np 16 ppam cluster ../data/2009_first10000.bin 300 7 0 1
24
25 LD_LIBRARY_PATH=$saveLibPath
26 export LD_LIBRARY_PATH