Commit b8d38dd
[release/2.9] Fix test OOMs triggered by test_cuda.py (#2816)
Cherry-pick of
pytorch@e4ffd71
> This PR fixes a bug in the `test_garbage_collect_expandable` unit test
where the finally block incorrectly re-reads the current per process
memory fraction instead of setting the original value. With out the fix
the other tests in the `test/test_cuda.py` test suite were impacted and
failed with OOM error on ROCm.
>
> This ensures proper cleanup and isolation of test state, maintaining
test correctness and avoiding side effects like the below OOM error that
it caused.
Progress on ROCm/TheRock#2118
Co-authored-by: rraminen <[email protected]>1 parent 10201d7 commit b8d38dd
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4408 | 4408 | | |
4409 | 4409 | | |
4410 | 4410 | | |
4411 | | - | |
| 4411 | + | |
4412 | 4412 | | |
4413 | 4413 | | |
4414 | 4414 | | |
| |||
0 commit comments