Unverified Commit 1f48268b authored by Yifan Xiong's avatar Yifan Xiong Committed by GitHub
Browse files

Bug - Fix env file path (#310)

Fix env file path for `docker run`.
parent 53fe0c47
......@@ -387,7 +387,7 @@ def _run_proc(self, benchmark_name, mode, vars):
logger.info('Runner is going to run %s in %s mode, proc rank %d.', benchmark_name, mode.name, mode.proc_rank)
timeout = self._sb_benchmarks[benchmark_name].timeout
env_list = '--env-file sb.env'
env_list = '--env-file sb-workspace/sb.env'
for k, v in mode.env.items():
if isinstance(v, str):
env_list += f' -e {k}={str(v).format(proc_rank=mode.proc_rank, proc_num=mode.proc_num)}'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment