[[PageOutline]] = Profiling with Allinea Map = == Objective == Background of this item: Allinea Map is a type of tool for profiling the performance of C, C++, Fortran 90 and Python software. It was available on Curie and it has been successfully used to analyze multi-processor jobs. Profiling allows you to learn where your program spent its time and which functions called which other functions while it was executing. This information can show you which pieces of your program are slower than you expected and might be candidates for rewriting to make your program execute faster. == Allinea Map on Curie == Authors: A. Jornet [[BR]] Last revision: A. Jornet (2018/02/26) [[BR]] Make sure to compile ORCHIDEE with -g flag Then create a bash file to send your job to the Cluster. Copy and paste the lines below. ddtmap.sh: {{{ #!/bin/bash #MSUB -r testJob # Request name #MSUB -n 16 # Number of tasks to use #MSUB -T 15000 # Elapsed time limit in seconds #MSUB -o orchid_%I.o # Standard output. %I is the job id #MSUB -e orchid_%I.e # Error output. %I is the job id #MSUB -Q normal #MSUB -X # enable window #MSUB -D #MSUB -q standard # Queue type # Print all steps set -x # Load necessary modules module load map/6.0.2 module load netcdf/4.2_hdf5_parallel # next line might not be necessary cd /to/your/path map -n 16 ./orchidee_ol }}} Send your job to Curie ccc_msub ddtmap.sh