Commit fdaac35
authored
[UR][CUDA] Fix unmap of buffer WRITE_INVALIDATE_REGION mappings (#19028)
Buffers mapped with `UR_MAP_FLAG_WRITE_INVALIDATE_REGION` need to copy
back to the buffer's device memory when unmapped. The HIP adapter was
already doing this, seems like an accidental omission in the CUDA
adapter.1 parent 3b42472 commit fdaac35
2 files changed
Lines changed: 3 additions & 5 deletions
File tree
- unified-runtime
- source/adapters/cuda
- test/conformance/enqueue
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1384 | 1384 | | |
1385 | 1385 | | |
1386 | 1386 | | |
1387 | | - | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
1388 | 1390 | | |
1389 | 1391 | | |
1390 | 1392 | | |
| |||
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | 53 | | |
58 | 54 | | |
59 | 55 | | |
| |||
0 commit comments