Skip to content

Commit

Permalink
README file containing the instructions to patch CHARM to work with TAU.
Browse files Browse the repository at this point in the history
git-svn-id: file:///mnt/fast/tau2git/svnroot/trunk/tau2@6238 a8e31b63-e6ca-409b-a01b-2eec1b506579
  • Loading branch information
scottb committed Aug 11, 2008
1 parent 50eaf47 commit 895c97f
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions examples/charm/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
CHARM Example

= Using TAU with charm++ =
(tested with 5.4 release 1)

Note that when TAU is built with charm++, only charm++ programs can use the
resulting library. Additionally, no TAU calls can be made before the
ConverseInit call.

When using TAU_COMPILER with charm++, the following change must be made to
charm/src/conv-core/converse.h :

static __inline__ unsigned long long int rdtsc(void)
{
unsigned long long int x;
#ifdef CMK_IA64
__asm__ __volatile__("mov %0=ar.itc" : "=r"(x) :: "memory");
#else
__asm__ volatile (".byte 0x0f, 0x31" : "=A" (x));
#endif
return x;
}

Must be changed to :

static __inline__ unsigned long long int rdtsc(void)
{
unsigned long long int x;
#ifndef TAU_CHARM
#ifdef CMK_IA64
__asm__ __volatile__("mov %0=ar.itc" : "=r"(x) :: "memory");
#else
__asm__ volatile (".byte 0x0f, 0x31" : "=A" (x));
#endif
#endif
return x;
}

This is due to the EDG front-end parse not parsing the __asm__ directive
properly.





== For building NAMD with TAU: ==

FOR NAMD version 2.5 see ../../README.CHARM

FOR NAMD version 2.6 and greater see:
http://www.nic.uoregon.edu/tau-wiki/Guide:NAMDTAU

for the most up to date information.

0 comments on commit 895c97f

Please sign in to comment.