GPU MAGMA: When to use pinned memory allocation
Posted: Sun Apr 12, 2015 11:35 pm
Hi,
I am a newbie with GPU & MAGMA programming. I see that MAGMA (and Cuda) provide pinned host memory allocation (magma_*alloc_pinned & cudaMallocHost). When do I need to use pinned malloc instead of regular malloc? I cannot see any indication in the MAGMA documentation or a pattern I could recognize in the testing directory. My understanding is that pinned malloc allows for the best memory transfer speed between GPU and CPU. Is this correct?
Wirawan
I am a newbie with GPU & MAGMA programming. I see that MAGMA (and Cuda) provide pinned host memory allocation (magma_*alloc_pinned & cudaMallocHost). When do I need to use pinned malloc instead of regular malloc? I cannot see any indication in the MAGMA documentation or a pattern I could recognize in the testing directory. My understanding is that pinned malloc allows for the best memory transfer speed between GPU and CPU. Is this correct?
Wirawan