Does cuMemCreate function create contiguous physical memory location?

Hello,

I was reading about the cuMemCreate function and I saw that it returns a handle for the memory allocated. Is that physical allocated memory contiguous?

Thank you

I don’t know that any sort of guarantee like that is provided. It is certainly possible that the underlying physical pages could be contiguous, but it is not guaranteed or necessary as far as I know.

Any sort of guarantee of contiguous physical pages would be contrary to the purpose of having a virtual memory system, and would have a higher potential to run into fragmentation problems.

It’s not clear that this should matter in any way to the functioning of the CUDA virtual memory system.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.