瀏覽代碼

explain why with old versions of CUDA we allocate through tasks

Samuel Thibault 10 年之前
父節點
當前提交
31b9e769c2
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/datawizard/malloc.c

+ 2 - 0
src/datawizard/malloc.c

@@ -138,6 +138,8 @@ int starpu_malloc_flags(void **A, size_t dim, int flags)
 #else
 			int push_res;
 
+			/* Old versions of CUDA are not thread-safe, we have to
+			 * run cudaHostAlloc from CUDA workers */
 			STARPU_ASSERT_MSG(_starpu_worker_may_perform_blocking_calls(), "without CUDA peer allocation support, pinned allocation must not be done from task or callback");
 
 			struct malloc_pinned_codelet_struct s =