rename ppam.sh
[epclust.git] / code / main.sh
1 #!/bin/bash
2 #PBS -l walltime=00:05:00
3 #PBS -l nodes=2:ppn=8,pmem=1gb
4 #PBS -oe .output
5
6 WORKDIR="/workdir2/auder/edfclust/code"
7 cd $WORKDIR
8
9 rm -f .output
10
11 saveLibPath=$LD_LIBRARY_PATH
12
13 #TODO: CDS as a module
14 LD_LIBRARY_PATH=/workdir2/cds/lib:/opt/openmpi/lib:$LD_LIBRARY_PATH
15 export LD_LIBRARY_PATH
16
17 #TODO: externalize (de)serialization, do not make assumptions on "how is data stored" (...)
18
19 # ppam args (in case of clustering) =
20 # 1: path to binary dataset
21 # 2: series per processor
22 # 3: number of clusters
23 # 4: boolean to randomize series sampling
24 # 5: type of distance (1 for L1, 2 for L2...)
25
26 #TODO: Hybrid MPI+OpenMP
27 mpirun -np 16 ppam cluster ../data/2009_first10000.bin 300 7 0 1
28
29 LD_LIBRARY_PATH=$saveLibPath
30 export LD_LIBRARY_PATH