Commit c39bd60
Use spawn instead of forkserver for MTIA (meta-pytorch#2691)
Summary:
Pull Request resolved: meta-pytorch#2691
This is to support multiprocessing for MTIA. MTIA runtime doesn't seem to work with forkserver; folly::Singleton cannot work with fork. Switch to `spawn` when running on MTIA.
Error paste: P1684403488
Reviewed By: qcyuan
Differential Revision: D66351758
fbshipit-source-id: eee0bc4bb7a0fa527d0b318c8b5fac18564fe05e1 parent f52fd32 commit c39bd60
1 file changed
+12
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 28 | | |
33 | 29 | | |
34 | 30 | | |
| |||
98 | 94 | | |
99 | 95 | | |
100 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
101 | 106 | | |
102 | 107 | | |
103 | 108 | | |
| |||
131 | 136 | | |
132 | 137 | | |
133 | 138 | | |
134 | | - | |
| 139 | + | |
135 | 140 | | |
136 | 141 | | |
137 | 142 | | |
| |||
157 | 162 | | |
158 | 163 | | |
159 | 164 | | |
160 | | - | |
| 165 | + | |
161 | 166 | | |
162 | 167 | | |
163 | 168 | | |
| |||
0 commit comments