-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhpctoolkitInstall.sh
34 lines (28 loc) · 953 Bytes
/
hpctoolkitInstall.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
mkdir hpcToolKit
cd hpcToolKit
HPCTOOLKITDIR=$PWD
mkdir installDirExternal
cd installDirExternal
HPCTOOLKITDIR_INSTALL_DIR_EXTERNAL=$PWD
cd $HPCTOOLKITDIR
mkdir installDir
cd installDir
HPCTOOLKITDIR_INSTALL_DIR=$PWD
cd $HPCTOOLKITDIR
#git clone https://github.com/HPCToolkit/hpctoolkit.git
#git clone https://github.com/HPCToolkit/hpctoolkit-externals.git
git clone https://github.com/proywm/ccprof_hpctoolkit_deps.git
cd ccprof_hpctoolkit_deps/hpctoolkit-externals
mkdir BUILD && cd BUILD
../configure --prefix=$HPCTOOLKITDIR_INSTALL_DIR_EXTERNAL
make -j32
make install
make clean
cd $HPCTOOLKITDIR
cd ccprof_hpctoolkit_deps/hpctoolkit
mkdir BUILD && cd BUILD
../configure --prefix=$HPCTOOLKITDIR_INSTALL_DIR --with-externals=$HPCTOOLKITDIR_INSTALL_DIR_EXTERNAL
make -j32
make install
echo "export PATH=$HPCTOOLKITDIR_INSTALL_DIR/bin:$PATH" >> ~/.bashrc
echo "export LD_LIBRARY_PATH=$HPCTOOLKITDIR_INSTALL_DIR/lib:$LD_LIBRARY_PATH" >> ~/.bashrc