monai
medical
katielink commited on
Commit
512a97f
1 Parent(s): 9b1d3a3

fix mgpu finalize issue

Browse files
configs/metadata.json CHANGED
@@ -1,7 +1,8 @@
1
  {
2
  "schema": "https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/meta_schema_20220324.json",
3
- "version": "0.4.1",
4
  "changelog": {
 
5
  "0.4.1": "add non-deterministic note",
6
  "0.4.0": "adapt to BundleWorkflow interface",
7
  "0.3.9": "black autofix format and add name tag",
 
1
  {
2
  "schema": "https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/meta_schema_20220324.json",
3
+ "version": "0.4.2",
4
  "changelog": {
5
+ "0.4.2": "fix mgpu finalize issue",
6
  "0.4.1": "add non-deterministic note",
7
  "0.4.0": "adapt to BundleWorkflow interface",
8
  "0.3.9": "black autofix format and add name tag",
configs/multi_gpu_train.json CHANGED
@@ -35,6 +35,6 @@
35
  "$@train#trainer.run()"
36
  ],
37
  "finalize": [
38
- "$dist.destroy_process_group()"
39
  ]
40
  }
 
35
  "$@train#trainer.run()"
36
  ],
37
  "finalize": [
38
+ "$dist.is_initialized() and dist.destroy_process_group()"
39
  ]
40
  }