fix accent (TODO: fix gitweb...)
[ppam-mpi.git] / code / ppam.sh
CommitLineData
81923e5c
BA
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
7WORKDIR="/workdir/auder/ppam_mpi/src"
8cd $WORKDIR
9
10rm -f output.txt
11rm -f error.txt
12
13saveLibPath=$LD_LIBRARY_PATH
14LD_LIBRARY_PATH=/workdir/cds/lib:/opt/openmpi/lib:$LD_LIBRARY_PATH
15export 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...)
23mpirun -np 16 ppam cluster ../data/2009_first10000.bin 300 7 0 1
24
25LD_LIBRARY_PATH=$saveLibPath
26export LD_LIBRARY_PATH