forked from OpenSpeedShop/openspeedshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
100 lines (79 loc) · 3.04 KB
/
README
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
Please see the BuildInstallGuide.txt in the release directory for the latest build
and install information. That document is based on the "pdf" version
of the Build and Install Guide that is available in the Files download
area for this OpenSpeedShop release on sourceforge.
Both documents have valid Open|SpeedShop-2.2 release information.
These are some sample cmake build scripts to use as an example:
-------------------------------------------------------------------
BUILDING OPENSPEEDSHOP for the offline instrumentor:
-------------------------------------------------------------------
LISTING OF THE SCRIPT:
$ cat run_cmake_ossoff_laptop.sh
rm -rf build_off
mkdir build_off
pushd build_off
export KRELL_ROOT=/opt/krellroot_v2.2.2
export OPENSS_INSTALL_DIR=/opt/ossoff_222
export OPENMPI_ROOT=/opt/openmpi-1.8.2
cmake .. \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_CXX_FLAGS="-g -O2" \
-DCMAKE_C_FLAGS="-g -O2" \
-DINSTRUMENTOR="offline" \
-DRESOLVE_SYMBOLS=symtabapi \
-DCMAKE_INSTALL_PREFIX=${OPENSS_INSTALL_DIR} \
-DCMAKE_PREFIX_PATH=${KRELL_ROOT} \
-DBINUTILS_DIR=${KRELL_ROOT} \
-DLIBELF_DIR=${KRELL_ROOT} \
-DLIBDWARF_DIR=${KRELL_ROOT} \
-DLIBUNWIND_DIR=${KRELL_ROOT} \
-DLIBMONITOR_DIR=${KRELL_ROOT} \
-DPAPI_DIR=${KRELL_ROOT} \
-DDYNINST_DIR=${KRELL_ROOT} \
-DVT_DIR=${KRELL_ROOT} \
-DOTF_DIR=${KRELL_ROOT} \
-DOPENMPI_DIR=${OPENMPI_ROOT}
make clean
make
make install
RUN THE SCRIPT TO BUILD:
$ sh run_cmake_ossoff_laptop.sh
-------------------------------------------------------------------
-------------------------------------------------------------------
BUILDING OPENSPEEDSHOP for the cbtf instrumentor:
-------------------------------------------------------------------
LISTING OF THE SCRIPT:
$ cat run_cmake_osscbtf_laptop.sh
rm -rf build-cbtf
mkdir build-cbtf
pushd build-cbtf
export KRELL_ROOT=/opt/krellroot_v2.2.2
export MRNET_ROOT=/opt/krellroot_v2.2.2
export DYNINST_ROOT=/opt/krellroot_v2.2.2
export CBTF_KRELL_INSTALL_DIR=/opt/cbtf_v2.2.2
export CBTF_ARGO_INSTALL_DIR=/opt/cbtf_v2.2.2
export CBTF_INSTALL_DIR=/opt/cbtf_v2.2.2
export OSS_CBTF_INSTALL_DIR=/opt/osscbtf_v2.2.2
# Locate the find package files in the locations that cmake expects
export MY_CMAKE_PREFIX_PATH="${CBTF_INSTALL_DIR}:${CBTF_KRELL_INSTALL_DIR}:${KRELL_ROOT}"
cmake .. \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_CXX_FLAGS="-g -O2" \
-DCMAKE_C_FLAGS="-g -O2" \
-DCMAKE_INSTALL_PREFIX=${OSS_CBTF_INSTALL_DIR}\
-DCBTF_DIR=${CBTF_INSTALL_DIR} \
-DCBTF_KRELL_DIR=${CBTF_KRELL_INSTALL_DIR} \
-DCBTF_ARGONAVIS_DIR=${CBTF_ARGO_INSTALL_DIR} \
-DINSTRUMENTOR="cbtf" \
-DRESOLVE_SYMBOLS=symtabapi \
-DCMAKE_PREFIX_PATH=${MY_CMAKE_PREFIX_PATH} \
-DBINUTILS_DIR=${KRELL_ROOT} \
-DLIBELF_DIR=${KRELL_ROOT} \
-DLIBDWARF_DIR=${KRELL_ROOT} \
-DDYNINST_DIR=${DYNINST_ROOT} \
-DMRNET_DIR=${MRNET_ROOT}
make clean
make
make install
RUN THE SCRIPT TO BUILD:
$ sh run_cmake_osscbtf_laptop.sh