llvm icon indicating copy to clipboard operation
llvm copied to clipboard

[UR][CUDA] Fix unmap of buffer WRITE_INVALIDATE_REGION mappings

Open callumfare opened this issue 4 months ago • 0 comments

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.

callumfare avatar Jun 17 '25 16:06 callumfare