Skip to content

Commit

Permalink
DDp interpreter (#2482)
Browse files Browse the repository at this point in the history
* interpreter

* chlog
  • Loading branch information
Borda authored Jul 3, 2020
1 parent 6d9c7bf commit fc61c20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

### Fixed

- Fixed using the same DDP python interpreter and actually running ([#2482](https://github.com/PyTorchLightning/pytorch-lightning/pull/2482))


## [0.8.4] - 2020-07-01

Expand Down
3 changes: 2 additions & 1 deletion pytorch_lightning/trainer/distrib_data_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,8 @@ def spawn_ddp_children(self, model):
full_path = abspath(command[0])

command[0] = full_path
command = ['python'] + command
# use the same python interpreter and actually running
command = [sys.executable] + command

# since this script sets the visible devices we replace the gpus flag with a number
num_gpus = os.environ['CUDA_VISIBLE_DEVICES'].split(',').__len__()
Expand Down

0 comments on commit fc61c20

Please sign in to comment.