Keeneland

From Tau Wiki
Revision as of 18:57, 25 January 2011 by Scottb (talk | contribs)
Jump to: navigation, search

Guide for using TAU on Keeneland

Setting up environment

We'll have a module for TAU setup shortly but for now, setup your environment this way:


   %> export PATH=/nics/c/home/biersdor/tau2/x86_64/bin/:$PATH
   %> export LD_LIBRARY_PATH=/nics/c/home/biersdor/tau2/x86_64/lib/:$LD_LIBRARY_PATH


Running CUDA applications

Both CUDA and OpenCL are instrumented dynamically through library preloading, use the tau_exec script to run the CUDA application:

   %> tau_exec -T serial -cuda ./Stencil2D

The -T serial specifies with TAU configuration to use, you can omit this for MPI applications and run:


Trouble-shooting

  • CPU side looks fine but o GPU profile/trace generated.

This is likely because there is no cudaThreadExit() call at the end the application. By placing one there this will signal TAU that the applications CUDA accelerated section is finished and it can go ahead and wright out the profile/trace.

Fix: Place cudaThreadExit() at the end of the application.

  • Receiving Error calculating kernel event [start|stop], error #: 33. during execution.

This means that CUDA could not retrieve the event object at synchronization. Try placing the synchronize event right after the kernel is launched. In some cases no configuration of kernel launches/synchronization points will suffice, in this cases although this one kernel could not be tracked any other ones taking place in the application should be tracked correctly.

Fix: Try placing a synchronization called right after the kernel launch.


Running OpenCL applications

CUpti and PAPI

Coming soon...