浏览代码

put in comment why we unset PINNED when we don't have memcpy_peer

Samuel Thibault 9 年之前
父节点
当前提交
62d5b29384
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/datawizard/malloc.c

+ 5 - 0
src/datawizard/malloc.c

@@ -404,6 +404,11 @@ _starpu_malloc_on_node(unsigned dst_node, size_t size)
 		{
 			starpu_malloc_flags((void**) &addr, size,
 #if defined(STARPU_USE_CUDA) && !defined(HAVE_CUDA_MEMCPY_PEER) && !defined(STARPU_SIMGRID)
+					/* without memcpy_peer, we can not
+					 * allocated pinned memory, since it
+					 * requires waiting for a task, and we
+					 * may be called with a spinlock held
+					 */
 					0
 #else
 					STARPU_MALLOC_PINNED