Browse Source

Use STARPU_MAIN_RAM instead of 0

Samuel Thibault 9 years ago
parent
commit
6c7f9acc71
1 changed files with 1 additions and 1 deletions
  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
 		/* This is lazy allocation, allocate it now in main RAM, so as
 		 * to have somewhere to gather pieces later */
 		 * to have somewhere to gather pieces later */
 		/* FIXME: mark as unevictable! */
 		/* 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
 #ifdef STARPU_DEVEL
 #warning we should reclaim memory if allocation failed
 #warning we should reclaim memory if allocation failed
 #endif
 #endif