run_local_modelverse.py 682 B

1234567891011121314
  1. import subprocess
  2. import sys
  3. # sys.executable to use the same Python interpreter used to invoke this command
  4. if len(sys.argv) < 2:
  5. port = "8001"
  6. subprocess.check_call([sys.executable, "-m", "sccd.compiler.sccdc", "-p", "threads", "server.xml"], cwd="hybrid_server")
  7. subprocess.call([sys.executable, "run_mvk_server.py", port], cwd="hybrid_server")
  8. # Additional ways of calling...
  9. #subprocess.call([sys.executable, "run_mvk_server.py", port] + ["--kernel=baseline-jit"], cwd="hybrid_server")
  10. #subprocess.call([sys.executable, "-m", "cProfile", "-s", "tottime", "run_mvk_server.py", port], cwd="hybrid_server", stdout=open("/tmp/stdout", 'w'), stderr=open("/tmp/stderr", "w"))