提交 cd6f901a 编写于 作者: Z zhangjun

mkdir fix

上级 2d57e65e
...@@ -233,7 +233,7 @@ def start_multi_card(args, serving_port=None): # pylint: disable=doc-string-mis ...@@ -233,7 +233,7 @@ def start_multi_card(args, serving_port=None): # pylint: disable=doc-string-mis
env_gpus = [] env_gpus = []
if args.use_lite: if args.use_lite:
print("run using paddle-lite.") print("run using paddle-lite.")
start_gpu_card_model(-1, -1, args) start_gpu_card_model(-1, -1, serving_port, args)
elif len(gpus) <= 0: elif len(gpus) <= 0:
print("gpu_ids not set, going to run cpu service.") print("gpu_ids not set, going to run cpu service.")
start_gpu_card_model(-1, -1, serving_port, args) start_gpu_card_model(-1, -1, serving_port, args)
......
...@@ -364,9 +364,9 @@ class Server(object): ...@@ -364,9 +364,9 @@ class Server(object):
cube_conf=None): cube_conf=None):
if workdir == None: if workdir == None:
workdir = "./tmp" workdir = "./tmp"
os.system("mkdir {}".format(workdir)) os.system("mkdir -p {}".format(workdir))
else: else:
os.system("mkdir {}".format(workdir)) os.system("mkdir -p {}".format(workdir))
os.system("touch {}/fluid_time_file".format(workdir)) os.system("touch {}/fluid_time_file".format(workdir))
if not self.port_is_available(port): if not self.port_is_available(port):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册