HPCToolkit
make-wrappers Namespace Reference

Classes

class  fdecl
 
class  VarDesc
 
class  xlateEntry
 

Functions

def ProcessDirectiveLine (lastFunction, line)
 
def ProcessWrapperPreLine (lastFunction, line)
 
def ProcessWrapperPostLine (lastFunction, line)
 
def DumpDict ()
 
def SpecialParamRecord (funct, param)
 Some MPI types we want to record. More...
 
def ParamDictUpdate (fname)
 ParamDictUpdate - updates the datastructures for a function after the basics have been entered. More...
 
def ReadInputFile (f)
 Parses the input file and loads the information into the function dict. More...
 
def StandardFileHeader (fname)
 create a standard file header and return the init list More...
 
def ParameterOptimization ()
 Scan the lists of all functions and look for optimization opportunities (in space/speed). More...
 
def GenerateStructureFile ()
 Create the structure files. More...
 
def GenerateLookup ()
 Generate a lookup table where mpiP can grab variables and function pointers. More...
 
def CreateWrapper (funct, olist)
 Create a MPI wrapper for one function using the information in the function dict. More...
 
def GenerateWrappers ()
 
def GetFortranSymbol (fsymtp, fsym)
 
def GenerateWeakSymbols ()
 
def GenerateSymbolDefs ()
 
def main ()
 

Variables

int cnt = 0
 
dictionary fdict = {}
 
string lastFunction = "NULL"
 
int verbose = 0
 
int baseID = 1000
 
dictionary messParamDict
 
dictionary ioParamDict
 
dictionary rmaParamDict
 
list noDefineList
 
dictionary opaqueInArgDict
 
dictionary opaqueOutArgDict
 
dictionary incrementFortranIndexDict
 
dictionary xlateFortranArrayExceptions
 

Function Documentation

◆ CreateWrapper()

def make-wrappers.CreateWrapper (   funct,
  olist 
)

Create a MPI wrapper for one function using the information in the function dict.

First, generate a generic wrapper, and then the FORTRAN, C wrappers.

Definition at line 781 of file make-wrappers.py.

Here is the caller graph for this function:

◆ DumpDict()

def make-wrappers.DumpDict ( )

Definition at line 457 of file make-wrappers.py.

◆ GenerateLookup()

def make-wrappers.GenerateLookup ( )

Generate a lookup table where mpiP can grab variables and function pointers.

Definition at line 740 of file make-wrappers.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GenerateStructureFile()

def make-wrappers.GenerateStructureFile ( )

Create the structure files.

Definition at line 714 of file make-wrappers.py.

Here is the call graph for this function:

◆ GenerateSymbolDefs()

def make-wrappers.GenerateSymbolDefs ( )

Definition at line 1198 of file make-wrappers.py.

Here is the caller graph for this function:

◆ GenerateWeakSymbols()

def make-wrappers.GenerateWeakSymbols ( )

Definition at line 1156 of file make-wrappers.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GenerateWrappers()

def make-wrappers.GenerateWrappers ( )

Definition at line 1085 of file make-wrappers.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetFortranSymbol()

def make-wrappers.GetFortranSymbol (   fsymtp,
  fsym 
)

Definition at line 1137 of file make-wrappers.py.

Here is the caller graph for this function:

◆ main()

def make-wrappers.main ( )

Definition at line 1231 of file make-wrappers.py.

Here is the call graph for this function:

◆ ParamDictUpdate()

def make-wrappers.ParamDictUpdate (   fname)

ParamDictUpdate - updates the datastructures for a function after the basics have been entered.

Must be called for each function.

Definition at line 502 of file make-wrappers.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParameterOptimization()

def make-wrappers.ParameterOptimization ( )

Scan the lists of all functions and look for optimization opportunities (in space/speed).

NOT USED

Definition at line 701 of file make-wrappers.py.

Here is the call graph for this function:

◆ ProcessDirectiveLine()

def make-wrappers.ProcessDirectiveLine (   lastFunction,
  line 
)

Definition at line 436 of file make-wrappers.py.

Here is the caller graph for this function:

◆ ProcessWrapperPostLine()

def make-wrappers.ProcessWrapperPostLine (   lastFunction,
  line 
)

Definition at line 452 of file make-wrappers.py.

Here is the caller graph for this function:

◆ ProcessWrapperPreLine()

def make-wrappers.ProcessWrapperPreLine (   lastFunction,
  line 
)

Definition at line 447 of file make-wrappers.py.

Here is the caller graph for this function:

◆ ReadInputFile()

def make-wrappers.ReadInputFile (   f)

Parses the input file and loads the information into the function dict.

Definition at line 587 of file make-wrappers.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SpecialParamRecord()

def make-wrappers.SpecialParamRecord (   funct,
  param 
)

Some MPI types we want to record.

If there are pointers to them, deref them. To simplify, assume that the value can be an 'int' for printing and assignment.

Definition at line 472 of file make-wrappers.py.

Here is the caller graph for this function:

◆ StandardFileHeader()

def make-wrappers.StandardFileHeader (   fname)

create a standard file header and return the init list

Definition at line 683 of file make-wrappers.py.

Here is the caller graph for this function:

Variable Documentation

◆ baseID

int make-wrappers.baseID = 1000

Definition at line 31 of file make-wrappers.py.

◆ cnt

int make-wrappers.cnt = 0

Definition at line 27 of file make-wrappers.py.

◆ fdict

dictionary make-wrappers.fdict = {}

Definition at line 28 of file make-wrappers.py.

◆ incrementFortranIndexDict

dictionary make-wrappers.incrementFortranIndexDict
Initial value:
1 = {
2  ("MPI_Testany"): ("*index", 1),
3  ("MPI_Testsome"): ("array_of_indices", "*count"),
4  ("MPI_Waitany"): ("*index", 1),
5  ("MPI_Waitsome"): ("array_of_indices", "*count")
6  }

Definition at line 382 of file make-wrappers.py.

◆ ioParamDict

dictionary make-wrappers.ioParamDict
Initial value:
1 = {
2 
3  ( "MPI_File_read", "count"):1,
4  ( "MPI_File_read", "datatype"):2,
5  ( "MPI_File_read_all", "count"):1,
6  ( "MPI_File_read_all", "datatype"):2,
7  ( "MPI_File_read_at", "count"):1,
8  ( "MPI_File_read_at", "datatype"):2,
9  ( "MPI_File_write", "count"):1,
10  ( "MPI_File_write", "datatype"):2,
11  ( "MPI_File_write_all", "count"):1,
12  ( "MPI_File_write_all", "datatype"):2,
13  ( "MPI_File_write_at", "count"):1,
14  ( "MPI_File_write_at", "datatype"):2
15  }

Definition at line 81 of file make-wrappers.py.

◆ lastFunction

string make-wrappers.lastFunction = "NULL"

Definition at line 29 of file make-wrappers.py.

◆ messParamDict

dictionary make-wrappers.messParamDict

Definition at line 33 of file make-wrappers.py.

◆ noDefineList

list make-wrappers.noDefineList
Initial value:
1 = [
2  "MPI_Pcontrol"
3  ]

Definition at line 107 of file make-wrappers.py.

◆ opaqueInArgDict

dictionary make-wrappers.opaqueInArgDict

Definition at line 111 of file make-wrappers.py.

◆ opaqueOutArgDict

dictionary make-wrappers.opaqueOutArgDict

Definition at line 327 of file make-wrappers.py.

◆ rmaParamDict

dictionary make-wrappers.rmaParamDict
Initial value:
1 = {
2 
3  ( "MPI_Accumulate", "target_count"):1,
4  ( "MPI_Accumulate", "target_datatype"):2,
5  ( "MPI_Get", "origin_count"):1,
6  ( "MPI_Get", "origin_datatype"):2,
7  ( "MPI_Put", "origin_count"):1,
8  ( "MPI_Put", "origin_datatype"):2
9  }

Definition at line 97 of file make-wrappers.py.

◆ verbose

int make-wrappers.verbose = 0

Definition at line 30 of file make-wrappers.py.

◆ xlateFortranArrayExceptions

dictionary make-wrappers.xlateFortranArrayExceptions
Initial value:
1 = {
2  ("MPI_Testany", "array_of_requests"): ("index"),
3  ("MPI_Waitany", "array_of_requests"): ("index")
4 }

Definition at line 389 of file make-wrappers.py.