Quellcode durchsuchen

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

Samuel Thibault vor 9 Jahren
Ursprung
Commit
62d5b29384
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  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