This is an introduction to vampir as a performance tool.
The following guide describes how to execute ATELES with vampir to get a performance analyses. Before executing ATELES with vampir read the following instructions carefully. 

The following steps have to be done before executing ATELES:

Step 1: 
  module switch openmpi intelmpi
  export CC=icc
  export FC=mpiifort 

Go to the ATELES directory, 
  cd /your_folders/ateles

load the vampir module:
  module load UNITE vampirtrace/5.11-intel2-intel-marmot-papi 

Compile ATELES with vampir options by:
  ./waf vampir

Step 2: 
Execute ATELES under observation of vampir and its performance tools. The following file is an example file for the Cluster-beta system of of RWTH Rechenzentrum which executes ATELES there:
test/performance/vampir/vampir_ateles.lsf
Before submitting this job to the queue of the Cluster-beta system please check if the directory given in this file are the correct ones on your account.
The job is then submitted to the queue of the system by:
  bsub < test/performance/vampir/vampir_ateles.lsf

Step 3:
Now, analyse the files written by vampir. This can be done using vampir:
  module load UNITE vampir
  vampir *.otf


In the example file there are given some VampirTrace configurations that you can uncomment as you want.
If you use the Filter configuration, you have to specify a file containing the filter definitions. Here it is called vt_filter.txt. You can automatically generate filters as follows (* has to be replaced by the numbers in given file name:
  vtfilter -gen -p -r 50 -fo vt_filter.txt bt_**_buffer_**.otf 
uncomment export VT_FILTER_SPEC=vt_filter.txt in vampir_ateles.lsf
  bsub < test/performance/vampir/vampir_ateles.lsf

