-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun-cpu-baselines.sh
37 lines (31 loc) · 1.09 KB
/
run-cpu-baselines.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
set -x
# preparation
SIMD_FLAG=$1
NUM_THREADS=$2
# BSW
# Use sse4.1 as the default SIMD flag, could also choose avx2 or avx512
cd $GenDP_WORK_DIR/cpu-baselines/bsw/
make clean
make -j CXX=icpc arch=$SIMD_FLAG
numactl -N 0 -N 0 ./bsw -pairs $GenDP_WORK_DIR/gendp-datasets/bsw_147_1m_8bit_input.txt -t $NUM_THREADS -b 512
# Chain
cd $GenDP_WORK_DIR/cpu-baselines/chain/tal
make clean
make -j CXX=icpc arch=$SIMD_FLAG
numactl -N 0 -N 0 ./bench-dp-chaining $GenDP_WORK_DIR/gendp-datasets/chain_in-10k.txt $NUM_THREADS
# PairHMM
cd $GenDP_WORK_DIR/cpu-baselines/phmm
make clean
make -j CXX=icpc arch=$SIMD_FLAG
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./
numactl -N 0 -N 0 ./phmm -f $GenDP_WORK_DIR/gendp-datasets/large.in -t $NUM_THREADS
# POA
cd $GenDP_WORK_DIR/cpu-baselines/poa/racon
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make clean
make -j
numactl -N 0 -N 0 ./bin/racon -t $NUM_THREADS -g -6 $GenDP_WORK_DIR/gendp-datasets/guppy_hac.fastq $GenDP_WORK_DIR/gendp-datasets/saureus.flye.mm2.sam $GenDP_WORK_DIR/gendp-datasets/saureus.fasta > saureus.racon.fasta
cd $GenDP_WORK_DIR