apex icon indicating copy to clipboard operation
apex copied to clipboard

subprocess.CalledProcessError

Open JamesLee789 opened this issue 6 years ago • 0 comments

There are 2 GPUs on my Ubuntu server. I would like to check if my GPUs can work well in distributed mode.When I run the apex/examples/simple/distributed/run.sh file, I meet the subprocess.CalledProcessError as follows. How can I fix this problem? Thanks!

Traceback (most recent call last): File "/home/james/anaconda3/envs/pytorch_1.1/lib/python3.7/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/home/james/anaconda3/envs/pytorch_1.1/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/james/anaconda3/envs/pytorch_1.1/lib/python3.7/site-packages/torch/distributed/launch.py", line 235, in main() File "/home/james/anaconda3/envs/pytorch_1.1/lib/python3.7/site-packages/torch/distributed/launch.py", line 231, in main cmd=process.args) subprocess.CalledProcessError: Command '['/home/james/anaconda3/envs/pytorch_1.1/bin/python', '-u', 'distributed_data_parallel.py', '--local_rank=0']' returned non-zero exit status 1.

JamesLee789 avatar Jul 23 '20 12:07 JamesLee789