def faasm_main(): i = get_input() print("Got input {}".format(i)) set_output(bytes(i)) return 0
def faasm_main(): path = get_input() if not path: print("Input must be a path") return 1 path = path.decode() print("Path = {}, cwd = {}".format(path, os.getcwd())) dirlist = os.listdir(path) dirlist.sort() dir_list_str = ",".join(dirlist) print(dir_list_str) set_output(bytes(dir_list_str, "utf-8")) return 0
def distributed_divide_and_conquer(): # Run the worker print("Running matrix multiplication worker") input_bytes = get_input() mat.distributed_divide_and_conquer(input_bytes)