Skip to content
Snippets Groups Projects
Commit 4c924c8e authored by Martin Bauer's avatar Martin Bauer
Browse files

Performance Bugfix in cpujit

parent 03694952
Branches
Tags
No related merge requests found
......@@ -125,12 +125,13 @@ def buildCTypeArgumentList(parameterSpecification, argumentDict):
def makePythonFunctionIncompleteParams(kernelFunctionNode, argumentDict):
func = compileAndLoad(kernelFunctionNode)[kernelFunctionNode.functionName]
func.restype = None
parameters = kernelFunctionNode.parameters
def wrapper(**kwargs):
from copy import copy
fullArguments = copy(argumentDict)
fullArguments.update(kwargs)
args = buildCTypeArgumentList(kernelFunctionNode.parameters, fullArguments)
args = buildCTypeArgumentList(parameters, fullArguments)
func(*args)
return wrapper
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment