implement distributed qr (#30)

This commit is contained in:
Robert Nishihara
2016-04-19 14:44:07 -07:00
committed by Philipp Moritz
parent bffae5a80e
commit 37ac8faae5
9 changed files with 471 additions and 122 deletions
+2 -2
View File
@@ -99,10 +99,10 @@ def distributed(arg_types, return_types, worker=global_worker):
def distributed_decorator(func):
def func_executor(arguments):
"""This is what gets executed remotely on a worker after a distributed function is scheduled by the scheduler."""
print "Calling function {} with arguments {}".format(func.__name__, arguments)
print "Calling function {}".format(func.__name__)
result = func(*arguments)
check_return_values(func_call, result) # throws an exception if result is invalid
print "Finished executing function {} with arguments {}".format(func.__name__, arguments)
print "Finished executing function {}".format(func.__name__)
return result
def func_call(*args):
"""This is what gets run immediately when a worker calls a distributed function."""