Address space of pinned memory

Hello.

I have seen in many examples than when we want to use pinned mapped memory we must use the cudahostalloc function
in order to allocate pinned memory in the host. Then we have a pointer if we want to make changes in this memory by the host side.

My problem is that i must know exactly the address space of the pinned memory that i will use. For example i want to specify how much memory of the host i will use and not to allocate it. This is because i want to know exactly which addresses of the pinned-memory i use for my project.

It is important for me to use pinned memory.

Thanks a lot

Hello.

I have seen in many examples than when we want to use pinned mapped memory we must use the cudahostalloc function
in order to allocate pinned memory in the host. Then we have a pointer if we want to make changes in this memory by the host side.

My problem is that i must know exactly the address space of the pinned memory that i will use. For example i want to specify how much memory of the host i will use and not to allocate it. This is because i want to know exactly which addresses of the pinned-memory i use for my project.

It is important for me to use pinned memory.

Thanks a lot

Hi,

I’m not sure of what you are trying to achieve.

But if you don’t allocate memory then it doesn’t exist.

What you can do instead is to allocate it, save the address and free the memory, than you will know where it was supposed to be.

Hi,

I’m not sure of what you are trying to achieve.

But if you don’t allocate memory then it doesn’t exist.

What you can do instead is to allocate it, save the address and free the memory, than you will know where it was supposed to be.