HPCToolkit
|
Functions | |
def | WritecuDriverFunctionPointerTable (file, funcNames) |
def | WritecuRuntimeFunctionPointerTable (file, funcNames) |
def | FuncNameToCapitalizedEnum (name) |
def | FuncNameToEnum (name) |
def | WriteDriverFunctionPointerHeader (file, funcSig) |
def | WriteRuntimeFunctionPointerHeader (file, funcSig) |
def | WriteDriverFunctionWrapper (file, funcSig) |
def | WriteRuntimeFunctionWrapper (file, funcSig) |
endif ''') More... | |
Variables | |
list | driverSkipList |
list | runtimeSkipList |
string | cuPattern = '\s*(CUresult[\s\n]+)(cu[a-zA-Z0-9_]*[\s\n]*)\(([^;]*)\)[\s\n]*;' |
string | cudaPattern = '\s*extern[\s\n]+(cudaError_t[\s\n]+)(cuda[a-zA-Z0-9_]*[\s\n]*)\(([^;]*)\)[\s\n]*;' |
inFile = open(sys.argv[2]).read() | |
generatedHeaderFile = sys.argv[3] | |
generatedTableFile = sys.argv[4] | |
generatedWrapperFile = sys.argv[5] | |
lines = re.finditer(cuPattern,inFile, re.MULTILINE) | |
defaultValue = re.compile('__dv\s*\(.*\)') | |
list | signatures = [] |
funcName = line.group(2) | |
funcPrefix = line.group(1) | |
funcArgs = line.group(3) | |
noDefaultArgs = defaultValue.sub('',funcArgs) | |
args = noDefaultArgs.split(',') | |
last = argTypeName.split()[-1] | |
def make-cuda-wrappers.FuncNameToCapitalizedEnum | ( | name | ) |
Definition at line 133 of file make-cuda-wrappers.py.
def make-cuda-wrappers.FuncNameToEnum | ( | name | ) |
def make-cuda-wrappers.WritecuDriverFunctionPointerTable | ( | file, | |
funcNames | |||
) |
Definition at line 93 of file make-cuda-wrappers.py.
def make-cuda-wrappers.WritecuRuntimeFunctionPointerTable | ( | file, | |
funcNames | |||
) |
Definition at line 113 of file make-cuda-wrappers.py.
def make-cuda-wrappers.WriteDriverFunctionPointerHeader | ( | file, | |
funcSig | |||
) |
def make-cuda-wrappers.WriteDriverFunctionWrapper | ( | file, | |
funcSig | |||
) |
def make-cuda-wrappers.WriteRuntimeFunctionPointerHeader | ( | file, | |
funcSig | |||
) |
def make-cuda-wrappers.WriteRuntimeFunctionWrapper | ( | file, | |
funcSig | |||
) |
endif ''')
Definition at line 329 of file make-cuda-wrappers.py.
make-cuda-wrappers.args = noDefaultArgs.split(',') |
Definition at line 431 of file make-cuda-wrappers.py.
string make-cuda-wrappers.cudaPattern = '\s*extern[\s\n]+(cudaError_t[\s\n]+)(cuda[a-zA-Z0-9_]*[\s\n]*)\(([^;]*)\)[\s\n]*;' |
Definition at line 401 of file make-cuda-wrappers.py.
string make-cuda-wrappers.cuPattern = '\s*(CUresult[\s\n]+)(cu[a-zA-Z0-9_]*[\s\n]*)\(([^;]*)\)[\s\n]*;' |
Definition at line 400 of file make-cuda-wrappers.py.
make-cuda-wrappers.defaultValue = re.compile('__dv\s*\(.*\)') |
Definition at line 422 of file make-cuda-wrappers.py.
list make-cuda-wrappers.driverSkipList |
Definition at line 28 of file make-cuda-wrappers.py.
make-cuda-wrappers.funcArgs = line.group(3) |
Definition at line 428 of file make-cuda-wrappers.py.
make-cuda-wrappers.funcName = line.group(2) |
Definition at line 426 of file make-cuda-wrappers.py.
make-cuda-wrappers.funcPrefix = line.group(1) |
Definition at line 427 of file make-cuda-wrappers.py.
make-cuda-wrappers.generatedHeaderFile = sys.argv[3] |
Definition at line 408 of file make-cuda-wrappers.py.
make-cuda-wrappers.generatedTableFile = sys.argv[4] |
Definition at line 409 of file make-cuda-wrappers.py.
make-cuda-wrappers.generatedWrapperFile = sys.argv[5] |
Definition at line 410 of file make-cuda-wrappers.py.
make-cuda-wrappers.inFile = open(sys.argv[2]).read() |
Definition at line 406 of file make-cuda-wrappers.py.
make-cuda-wrappers.last = argTypeName.split()[-1] |
Definition at line 434 of file make-cuda-wrappers.py.
Definition at line 414 of file make-cuda-wrappers.py.
make-cuda-wrappers.noDefaultArgs = defaultValue.sub('',funcArgs) |
Definition at line 429 of file make-cuda-wrappers.py.
list make-cuda-wrappers.runtimeSkipList |
Definition at line 43 of file make-cuda-wrappers.py.
list make-cuda-wrappers.signatures = [] |
Definition at line 424 of file make-cuda-wrappers.py.