Files
MP-SPDZ/Scripts/compile-run.py
2023-12-14 12:17:54 +11:00

20 lines
442 B
Python
Executable File

#!/usr/bin/env python3
import os, sys
sys.path.insert(0, os.path.dirname(sys.argv[0]) + '/..')
from Compiler.compilerLib import Compiler
compiler = Compiler(
execute=True, split_args=True,
usage="usage: %prog [options] [-E] protocol filename [args] "
"[-- [run-time args]]")
compiler.prep_compile()
prog = compiler.compile_file()
if prog.options.hostfile:
compiler.remote_execution()
else:
compiler.local_execution()