title: Profiling C/C++ code with Score-P and TAU
body: <p>I am tying to profile a C/C++ code using Score-P. I have set a variable SCOREP_PROFILING_FORMAT to TAU_SNAPSHOT, to obtain TAU traces as it is explained here: <a href="https://www.cs.uoregon.edu/research/tau/docs/old/bk05ch02s12.html" rel="nofollow">https://www.cs.uoregon.edu/research/tau/docs/old/bk05ch02s12.html</a>). </p>
  
  <p>The generated TAU folder contains several snapshot files like this:</p>
  
  <pre><code>$  ls
  snapshot.0.0.0   snapshot.12.0.0  snapshot.2.0.0  snapshot.6.0.0
  snapshot.1.0.0   snapshot.13.0.0  snapshot.3.0.0  snapshot.7.0.0
  snapshot.10.0.0  snapshot.14.0.0  snapshot.4.0.0  snapshot.8.0.0
  snapshot.11.0.0  snapshot.15.0.0  snapshot.5.0.0  snapshot.9.0.0
  </code></pre>
  
  <p>The problem arises when I try to analyze these files with pprof. If I run it I get:</p>
  
  <pre><code>$  pprof -f snapshot
  Reading Profile files in snapshot.*
  snapshot.ftab: No such file or directory
  </code></pre>
  
  <p>Opening one of these files shows that the format is XML:</p>
  
  <pre><code> $  head -10 snapshot.0.0.0
  
   &lt;profile_xml&gt;
   &lt;thread id="0.0.0.0" node="0" context="0" thread="0"&gt;
   &lt;/thread&gt;
  
   &lt;definitions thread="0.0.0.0"&gt;
   &lt;metric id="0"&gt;&lt;name&gt;TIME&lt;/name&gt;
   &lt;units&gt;ms&lt;/units&gt;
   &lt;/metric&gt;
   &lt;/definitions&gt; 
  </code></pre>
  
  <p>Also, I have tryied to change the TAU output format in the .bashrc file without success:</p>
  
  <pre><code>export TAU_PROFILE=1
  export TAU_PROFILE_FORMAT="profile"
  </code></pre>
  
  <p>The OS, versions of installed programs, and building parameters are:</p>
  
  <p>Ubuntu 12<br>
  Score-P 1.3<br>
  TAU 2.24<br>
  OpenMPI 1.6.5<br>
  Cube 4.2.3<br>
  Opari2 1.1.2
  CUDA 7<br>
  gcc,g++ 4.6</p>
  
  <p>To build Score-P I used:</p>
  
  <pre><code>./configure  --prefix=$scorep_prefix --with-cube=$cube_prefix \
               --with-opari2=$opari_prefix  \
               --with-cuda=$cuda_dir
  </code></pre>
  
  <p>To build TAU I used:</p>
  
  <pre><code>./configure -c++=g++ -cc=gcc -prefix=$tau_prefix -cuda=$cuda_dir
  </code></pre>
  
  <p>Everithing Built ran without errors.</p>
  
  <p>Has anyone been in this same situation? If so, could you please give me some feedback on how to open these snapshot files?</p>
  
  <p>Thank-you</p>