|
5 | 5 | - At tau source code, configure -prefix=/opt/tau/2.34 -c++=mpicxx -cc=mpicc -mpi -openmp; make install
|
6 | 6 | - But this may yield UNRESOLVED UNKNOWN for function name at postprocessing of profiling results
|
7 | 7 | - Will need bintuils with -bfd options
|
8 |
| -- Install binutils with configure command of ./configure --prefix=/opt/bintuils/2.40 --enable=shared --enable-6t4-bit-bfd --enalbe-install-libiberty ... |
9 |
| - - Check configure script to check which version of binutils is supported |
| 8 | +- Install binutils with configure command of ./configure --prefix=/opt/bintuils/2.42 --enable=shared --enable-6t4-bit-bfd --enalbe-install-libiberty ... |
| 9 | + - Check configure script to check which version of binutils is supported |
| 10 | + - but apex/cmake/Modules/FindBFD.cmake downloads 2.42 (Feb 2025) |
10 | 11 | - Details are at apex/cmake/Modules/FindBFD.cmake
|
11 | 12 | - make -j 20; make install
|
12 |
| - - Make sure that libiberty.a is installed |
| 13 | + - Make sure that libiberty.a is installed |
| 14 | + - cd /opt/binutils/2.42/include; ln -s libiberty ./extra # include/libiberty is not searched from TAU for demangle.sh |
13 | 15 | - Install libunwind: autoconf -i; configure --prefix=/opt/libunwind/1.6.2 ; make -j 10; make install
|
14 | 16 | - Install papi: cd src; configure --prefix=/opt/papi; make -j 10; make instal
|
15 | 17 | - Then configure tau as configure -prefix=/opt/tau/2.34 -bfd=/opt/bin/utils/2.40 -unwind=/opt/libunwind/1.6.2 -papi=/opt/papi/ -c++=mpicxx -cc=mpicc -mpi -openmp; make install
|
| 18 | +- For environmental variables |
| 19 | + - TAU_VERBOSE=1 |
| 20 | + - TAU_OPTIONS=-optCompInst |
| 21 | + - TAU_SAMPLING=1 |
| 22 | + - TAU_CALLPATH=1 |
| 23 | + - TAU_CALLPATH_DEPTH=100 |
| 24 | + - TAU_METRICS=TIME,PAPI_L1_DCM |
| 25 | + - TAU_MAKEFILE=..../Makefile.tau-papi-mpi-openmp |
16 | 26 |
|
17 | 27 | ## TAU + PDT
|
18 | 28 | - Install PDT first. MPI not required
|
19 | 29 | - At tau, configure -prefix=/opt/tau/2.34 -bfd=/opt/bin/utils/2.43 -unwind=/opt/libunwind/1.6.2 -papi=/opt/papi -pdt=/opt/pdt/ -c++=mpicxx -cc=mpicc -mpi -openmp; make install
|
| 30 | +- support for C++ may not work well |
20 | 31 | - PDT may be deprecated. See SALT coupling
|
21 | 32 |
|
22 | 33 | ## TAU with cmake
|
23 | 34 | - cmake may not work well due to instrument optimzation
|
24 | 35 | - Edit configure script with tau_cc.sh and tau_cxx.sh
|
25 | 36 | - export TAU_OPTIONS=-optDisable
|
26 |
| - - configure |
| 37 | + - configure; # TAU will pass through, not disrupting the source code/cmake |
27 | 38 | - export TAU_OPTIONS=-optCompInst
|
28 | 39 | - make -j 40
|
0 commit comments