Commit 051ceae
Added unit test for Heuristic Storage Reservation (#3511)
Summary:
Pull Request resolved: #3511
**Context:**
Heuristic Storage reservation is a common component for all planner that checks if the given module along with the constraints can be sharded across the topology.
**In this diff:**
We added a UT to validate the error for storage use in the storage reservation process. If the given module is larger than the provided topology. We need to OOM the process asap with appropriate error to notify the PG
Reviewed By: kausv, mserturk
Differential Revision: D85892579
fbshipit-source-id: 03eb679e6cabf8c030092c46d93a7b030e4c38141 parent b12fbba commit 051ceae
File tree
1 file changed
+31
-1
lines changed- torchrec/distributed/planner/tests
1 file changed
+31
-1
lines changedLines changed: 31 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
39 | 69 | | |
40 | 70 | | |
41 | 71 | | |
| |||
0 commit comments