-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_tprof.sh
More file actions
31 lines (27 loc) · 733 Bytes
/
build_tprof.sh
File metadata and controls
31 lines (27 loc) · 733 Bytes
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
#!/bin/bash
perf list | grep "cpu-cycles OR cycles" &> /dev/null
if [ $? != 0 ]; then
echo "Hardware Performance Counters not enabled. TaskProf requires a machine with Hardware Performance Counters. Exiting build."
else
root_cwd="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" #
echo $root_cwd
echo "***** Building TaskProf *****"
export LD_LIBRARY_PATH=""
cd $root_cwd
cd src/ptprof_lib/collection_phase
make clean
make
source tpvars.sh
cd $root_cwd
cd src/ptprof_lib/analysis_phase
make clean
make
source tpvars.sh
echo "***** Building TBB *****"
cd $root_cwd
cd src/tprof-tbb-lib
make clean
make
source obj/tbbvars.sh
cd $root_cwd
fi