llvm
llvm copied to clipboard
[UR][CUDA] Fix unmap of buffer WRITE_INVALIDATE_REGION mappings
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.