This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
howto:tune [2011/02/08 16:28] wikiadmin created |
howto:tune [2021/12/09 16:42] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== User Guide For Tuning and Analysis Tools in CHPC Sun System ====== | + | ====== User Guide For Tuning and Analysis Tools on the CHPC Lengau |
| Author: M.S Mabakane | Author: M.S Mabakane | ||
| - | Date: February, 08 2011 | + | Date: November, 30 2018 |
| - | TAU (Tuning and Analysis Utilities) is a portable profiling and tracing | + | TAU (Tuning and Analysis Utilities) is a portable profiling and tracing |
| - | At CHPC, TAU is installed and tested | + | At CHPC, TAU is installed and tested |
| + | |||
| + | TAU was installed using Intel Compiler 16.0.1 and Open MPI version 1.8.8. Below is the procedure on how to port, compile | ||
| Now, this is the procedure to port, compile and run the code using TAU: | Now, this is the procedure to port, compile and run the code using TAU: | ||
| Line 12: | Line 14: | ||
| Please note: typewriter characters depicts the command, directory or files in the system. | Please note: typewriter characters depicts the command, directory or files in the system. | ||
| - | - Login to the CHPC Sun system using '' | + | - Login to the CHPC Lengau |
| - | - In the command line, type the command: '' | + | - In the command line, type the command: '' |
| - | - From then, type the command: module | + | - Afterwards, type the command: '' |
| - | - You are now ready to port and compile the model using TAU. Note: If your model is written in Fortran language, use the library named: tau_f90.sh to compile the code. If it is written in C language use | + | - From then, type the command: |
| - | - Procedure to port & compile DLPOLY-2.18 | + | - You are now ready to port and compile the model using TAU. Note: If your model is written in Fortran language, use the library named: |
| - | - Untar the dlpoly-2.18 using the following command: untar -xzvf packagename. For this test, the working directory is: /export/home/username/scratch/ | + | - Procedure to port & compile DLPOLY-2.18 |
| - | - cd to dl_poly_2.18/ | + | - Untar the dlpoly-2.18 using the following command: |
| - | + | - cd to '' | |
| - | 5.3. Edit DLPOLY | + | |
| - | + | BINROOT = /mnt/lustre/ | |
| - | | + | CC = icc |
| - | CC = icc | + | EX = DLPOLY_2.18.X |
| - | EX = DLPOLY_2.18.X | + | EXE = $(BINROOT)/ |
| - | EXE = $(BINROOT)/ | + | FC=ifort |
| - | FC=ifort | + | SHELL=/ |
| - | SHELL=/ | + | TYPE=par |
| - | TYPE=par | + | |
| - | + | ||
| - | Sun: | + | |
| - | + | ||
| - | $(MAKE) LD=" | + | |
| - | LDFLAGS=" | + | |
| - | FC=" | + | |
| - | FCFLAGS=" | + | |
| - | EX=$(EX) BINROOT=$(BINROOT) $(TYPE) | + | |
| - | + | ||
| - | 5.4. In the same directory (dl_poly_2.18/ | + | |
| - | + | ||
| - | 9. From then, type command: make install. It will then generate an executable in the following path (as quoted in your Makefile): / | + | |
| - | + | ||
| - | Note: The only important change in your model is to replace mpi with tau wrapper. e.g. (mpif90 should be replaced by tau_f90.sh), | + | |
| - | + | ||
| - | 6. Procedure to submit the job and generate TAU output: | + | |
| - | + | ||
| - | + | ||
| - | 6.1. Use the normal script to submit job into the system (e.g): | + | |
| - | + | ||
| - | ###These lines are for Moab | + | |
| - | #MSUB -l nodes=2: | + | |
| - | #MSUB -l partition=ALL | + | |
| - | #MSUB -l walltime=168: | + | |
| - | #MSUB -m be | + | |
| - | #MSUB -V | + | |
| - | #MSUB -o / | + | |
| - | #MSUB -e / | + | |
| - | #MSUB -d / | + | |
| - | #MSUB -mb | + | |
| - | + | ||
| - | ##### Running commands | + | |
| - | exe=/ | + | |
| - | nproc=`cat $PBS_NODEFILE | wc -l` | + | |
| - | mpirun -np $nproc $exe | + | |
| - | + | ||
| - | 6.2. In this case, the job was submitted from the following directory: / | + | |
| - | + | ||
| - | 6.3. After the completion of the job; there should be normal output of your model including many files named: tautrace and events. | + | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | 7. Procedure to visualize the output of TAU: | + | |
| - | + | ||
| - | 7.1. In the same running directory of the job (/ | + | |
| - | + | ||
| - | 7.8. Again in the same directory, type: tau2slog2 tau.trc tau.edf -o tau.slog2. Note: This will then converts the traces to the slog2 format. This process may take more than 40 minutes depending on the size of the model. | + | |
| - | + | ||
| - | 7.9. From then, issue the following command: jumpshot tau.slog2. It will then pop-up a message which state as follows "It seems this is your first time using Jumpshot-4, a setup file will be created in your home directory with the default settings" | + | |
| - | + | ||
| - | 7.10. Click " | + | |
| - | + | ||
| - | 7.11. Another message will be displayed which quote as follows "Save preferred settings to the setup file" | + | |
| - | + | ||
| - | 7.12. Click " | + | |
| - | + | ||
| - | 7.13. It will then display the following TAU Program which contains all the processes that took place during the execution of the model as follows: | + | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | 7.14. The below picture outlines the processes of the selected mpi processes (such as Mpi_Send, Mpi_Receive, | + | |
| - | + | ||
| + | $(MAKE) LD=" | ||
| + | LDFLAGS=" | ||
| + | FC=" | ||
| + | FCFLAGS=" | ||
| + | EX=$(EX) BINROOT=$(BINROOT) $(TYPE)</ | ||
| + | - In the same directory '' | ||
| + | - From then, type command: make install. It will then generate an executable in the following path (as quoted in your Makefile): ''/ | ||
| + | - Procedure to submit the job and generate TAU output: | ||
| + | -Use the normal script to submit job into the system (e.g):< | ||
| + | ###These lines are for PBSPro | ||
| + | # | ||
| + | #PBS -l select=10: | ||
| + | #PBS -P PRJT1234 | ||
| + | #PBS -q normal | ||
| + | #PBS -l walltime=4: | ||
| + | #PBS -o / | ||
| + | #PBS -e / | ||
| + | #PBS -m abe | ||
| + | #PBS -M your.email@address | ||
| + | | ||
| + | cd / | ||
| + | | ||
| + | echo nproc is $nproc | ||
| + | cat $PBS_NODEFILE | ||
| + | time mpirun -np $nproc DLPOLY_2.18.X | ||
| + | </ | ||
| + | - In this case, the job was submitted from the following directory: ''/ | ||
| + | - After the completion of the job; there should produce normal output of your model including many files named: tautrace and events. | ||
| + | - Procedure to visualize the output of TAU: | ||
| + | - In the same running directory of the job ''/ | ||
| + | - Again in the same directory, type: '' | ||
| + | - From then, issue the following command: '' | ||
| + | - Click " | ||
| + | - Another message will be displayed which quote as follows "Save preferred settings to the setup file". | ||
| + | - Click " | ||
| + | - It will then display the TAU Program which contains all the processes that took place during the execution of the model. | ||
| + | - You may select your preferred processes that you need to track in the application e.g. Mpi_Send, Mpi_Receive, | ||
| For more information about TAU, visit the following website address: http:// | For more information about TAU, visit the following website address: http:// | ||
| - | |||
| - | |||
| - | |||