瀏覽代碼

Use STARPU_MAIN_RAM instead of 0

Samuel Thibault 9 年之前
父節點
當前提交
6c7f9acc71
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/datawizard/filters.c

+ 1 - 1
src/datawizard/filters.c

@@ -156,7 +156,7 @@ static void _starpu_data_partition(starpu_data_handle_t initial_handle, starpu_d
 		/* This is lazy allocation, allocate it now in main RAM, so as
 		 * to have somewhere to gather pieces later */
 		/* FIXME: mark as unevictable! */
-		int ret = _starpu_allocate_memory_on_node(initial_handle, &initial_handle->per_node[0], 0);
+		int ret = _starpu_allocate_memory_on_node(initial_handle, &initial_handle->per_node[STARPU_MAIN_RAM], 0);
 #ifdef STARPU_DEVEL
 #warning we should reclaim memory if allocation failed
 #endif