Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

callumfare
Copy link
Contributor

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 callumfare requested review from a team as code owners June 17, 2025 16:52
@callumfare callumfare requested a review from ldrumm June 17, 2025 16:52
@callumfare
Copy link
Contributor Author

The failures are unrelated to this PR and already known: #19034, #19033

@intel/llvm-gatekeepers Please merge

@kbenzie
Copy link
Contributor

kbenzie commented Jun 18, 2025

While the UR CUDA fail is known, I still think that testing should run on this PR since it's changing that.

@callumfare callumfare force-pushed the callum/fix_cuda_unmap_write_invalidate branch from d790247 to 5d10c0d Compare June 18, 2025 12:57
@kbenzie kbenzie merged commit fdaac35 into intel:sycl Jun 18, 2025
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants