Selaa lähdekoodia

fix comments spuriously commited

Samuel Thibault 12 vuotta sitten
vanhempi
commit
3beeb0a0ba
2 muutettua tiedostoa jossa 6 lisäystä ja 2 poistoa
  1. 3 1
      src/datawizard/filters.c
  2. 3 1
      src/drivers/cpu/driver_cpu.c

+ 3 - 1
src/datawizard/filters.c

@@ -148,7 +148,9 @@ void starpu_data_partition(starpu_data_handle_t initial_handle, struct starpu_da
 		/* This is lazy allocation, allocate it now in main RAM, so as
 		 * to have somewhere to gather pieces later */
 		int ret = _starpu_allocate_memory_on_node(initial_handle, &initial_handle->per_node[0], 0);
-		/* TODO: devrait faire du reclaim */
+#ifdef STARPU_DEVEL
+#warning we should reclaim memory if allocation failed
+#endif
 		STARPU_ASSERT(!ret);
 	}
 

+ 3 - 1
src/drivers/cpu/driver_cpu.c

@@ -207,8 +207,10 @@ static size_t _starpu_cpu_get_global_mem_size(int devid, struct _starpu_machine_
 	if (depth_node == HWLOC_TYPE_DEPTH_UNKNOWN)
 	     global_mem = hwloc_get_root_obj(topology->hwtopology)->memory.total_memory;
 	else
+#ifdef STARPU_DEVEL
+#warning devid looks wrong
+#endif
 	     global_mem = hwloc_get_obj_by_depth(topology->hwtopology, depth_node, devid)->memory.local_memory;
-	/* devid ?! */
 
 #else /* STARPU_HAVE_HWLOC */
 #ifdef STARPU_DEVEL