MAGMA BLAS: when to use pinned malloc
Posted: Mon Apr 13, 2015 5:23 pm
Hi,
I am quite new to MAGMA. I want to get clarification as to when pinned malloc (e.g. magma_dmalloc_pinned, magma_zmalloc_pinned, and friends) are to be used in place of vanilla magma_dmalloc, magma_zmalloc... My understanding is that the pinned host memory alloc is needed for the best speed transfer between CPU and GPU, but there is a drawback that the memory is not available for something else while allocated. Can someone clarify this? I can't find a documentation explaining this in MAGMA online documentation, or in testing source code. In that source code stuff, the only pinned malloc was with the BLAS testing stuff.
Wirawan
I am quite new to MAGMA. I want to get clarification as to when pinned malloc (e.g. magma_dmalloc_pinned, magma_zmalloc_pinned, and friends) are to be used in place of vanilla magma_dmalloc, magma_zmalloc... My understanding is that the pinned host memory alloc is needed for the best speed transfer between CPU and GPU, but there is a drawback that the memory is not available for something else while allocated. Can someone clarify this? I can't find a documentation explaining this in MAGMA online documentation, or in testing source code. In that source code stuff, the only pinned malloc was with the BLAS testing stuff.
Wirawan