Commit bb81f08
PR tensorflow#43897: [ROCm] Don't use async deallocaton in MIOpen autotuner backend
Imported from GitHub PR openxla/xla#43897
📝 Summary of Changes
Introduce file local OwningScratchAllocator implementation that does deallocation on destruction.
🎯 Justification
OwningScratchAllocator implementation moved to async deallocaton model which doesn't work for miopen backend.
🚀 Kind of Contribution
🐛 Bug Fix
Copybara import of the project:
--
945b5c2767fc40f51f9c045ba8766da3d728785c by Dragan Mladjenovic <Dragan.Mladjenovic@amd.com>:
[ROCm] Don't use async deallocaton in MIOpen autotuner backend
Merging this change closes tensorflow#43897
PiperOrigin-RevId: 9287535641 parent bbc3c0a commit bb81f08
1 file changed
Lines changed: 28 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
67 | 93 | | |
68 | 94 | | |
69 | 95 | | |
| |||
287 | 313 | | |
288 | 314 | | |
289 | 315 | | |
290 | | - | |
291 | | - | |
| 316 | + | |
| 317 | + | |
292 | 318 | | |
293 | 319 | | |
294 | 320 | | |
| |||
0 commit comments