rename ppam.sh
[epclust.git] / code / main.sh
CommitLineData
ab4a34ef
BA
1#!/bin/bash
2#PBS -l walltime=00:05:00
3#PBS -l nodes=2:ppn=8,pmem=1gb
4#PBS -oe .output
5
6WORKDIR="/workdir2/auder/edfclust/code"
7cd $WORKDIR
8
9rm -f .output
10
11saveLibPath=$LD_LIBRARY_PATH
12
13#TODO: CDS as a module
14LD_LIBRARY_PATH=/workdir2/cds/lib:/opt/openmpi/lib:$LD_LIBRARY_PATH
15export 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
27mpirun -np 16 ppam cluster ../data/2009_first10000.bin 300 7 0 1
28
29LD_LIBRARY_PATH=$saveLibPath
30export LD_LIBRARY_PATH