Commit f2cc224
committed
fix: Add callable check and improve test coverage for CUDA fork check
- Add callable() check before calling _is_in_bad_fork to ensure robustness
- Add test_check_for_bad_cuda_fork_with_is_in_bad_fork() to test new detection path
- Ensures test coverage for both the new _is_in_bad_fork and fallback paths1 parent fc8a8ec commit f2cc224
File tree
2 files changed
+12
-1
lines changed- src/lightning/fabric/strategies/launchers
- tests/tests_fabric/strategies/launchers
2 files changed
+12
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
| 202 | + | |
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
101 | 112 | | |
102 | 113 | | |
103 | 114 | | |
| |||
0 commit comments