Commit bf685e6
Add unit test for interpretermanager instantiation and module registry (#116)
Summary:
The InterpreterManager instantiation is throwing a segfault for cpython 3.10; debugging points to individual interpreter instantiation : https://github.com/pytorch/multipy/blob/a0b1f945bf79ab335bbc141f72b2e92910fe5577/multipy/runtime/interpreter/interpreter_impl.cpp#L415, which in turn has a fixed number of frozen python modules.
Creating a basic unit test to ensure InterpreterManager can be built, and the explicit module registration (https://github.com/pytorch/multipy/blob/a0b1f945bf79ab335bbc141f72b2e92910fe5577/multipy/runtime/deploy.cpp#L125) works.
Pull Request resolved: #116
Reviewed By: PaliC
Differential Revision: D38429675
Pulled By: anirbanr-fb-r2p
fbshipit-source-id: f3d1123f0b92d8411db00089a4e04659b8bda1d51 parent caadc42 commit bf685e6
File tree
4 files changed
+20
-3
lines changed- multipy/runtime
- interpreter
4 files changed
+20
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
161 | 166 | | |
162 | 167 | | |
163 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
57 | 65 | | |
58 | 66 | | |
59 | 67 | | |
60 | 68 | | |
61 | 69 | | |
62 | 70 | | |
63 | 71 | | |
64 | | - | |
| 72 | + | |
65 | 73 | | |
66 | 74 | | |
67 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
| |||
0 commit comments