-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
README file containing the instructions to patch CHARM to work with TAU.
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |