-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathINSTALL
67 lines (47 loc) · 2.06 KB
/
INSTALL
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
This document contains a basic outline for how to install the
PEBIL binary instrumentation package. Direct any questions or
comments to [email protected]
1. System Requirements
Operating System Linux
Binary Format Elf
Architecture ia32 or x86_64
2. set up environment
You will need to set the following variables (assuming the installation is
at /path/to/PEBIL/):
A. bash:
$ export PEBIL_ROOT=/path/to/PEBIL
$ export PATH=${PATH}:${PEBIL_ROOT}/bin:${PEBIL_ROOT}/scripts
$ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${PEBIL_ROOT}/lib
This functionality is also encapsulated in bashrc, so you can try:
$ . bashrc
B. csh:
% setenv PEBIL_ROOT /path/to/PEBIL/
% setenv PATH ${PATH}:${PEBIL_ROOT}/bin:${PEBIL_ROOT}/scripts
% setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${PEBIL_ROOT}/lib
3. PEBIL can be built using either autoconf configure script and the
resulting makefile or with cmake.
A. run the configure script. The mpi compiler detection isn't perfect
so setting the MPICC variable might be helpful. Some other
useful flags might be to use --enable-mpi=no if you don't want MPI
support or --enable-static=yes if your system doesn't support shared
libraries (TODO: static support sucks)
$ ./configure [MPICC=...] [--enable-mpi=no] [--enable-static=yes]
B. [NO LONGER SUPPORTED] run cmake. If you use this option you will also need to
configure/build the udis library.
$ cmake .
$ cd external/udis86-1.7
$ ./configure; make
$ cd -
4. build
$ make clean all install
NOTE: The install target copies things to /path/to/PEBIL/lib/ and
/path/to/PEBIL/bin/ (ie, it doesn't do what most install targets
do in that it doesn't try to system directories and ignores the
--prefix option to configure).
5. run PEBIL
For some ideas on what command line options are available:
$ pebil --help
Examples:
$ pebil --typ jbb --app testapps/dynTest.gnu
$ pebil --lib lib --typ ide src/pebil
$ pebil --typ crp --trk $PEBIL_ROOT/scripts/inputlist/test.wrap --app cg.A.8