Samuel Thibault 13 éve
szülő
commit
a28e4f6696
2 módosított fájl, 8 hozzáadás és 1 törlés
  1. 3 0
      src/datawizard/filters.c
  2. 5 1
      src/util/malloc.c

+ 3 - 0
src/datawizard/filters.c

@@ -271,6 +271,9 @@ void starpu_data_unpartition(starpu_data_handle_t root_handle, uint32_t gatherin
 			starpu_data_unpartition(child_handle, gathering_node);
 
 		/* If this is a multiformat handle, we must convert the data now */
+#ifdef STARPU_DEVEL
+#warning TODO: _starpu_fetch_data_on_node should be doing it
+#endif
 		if (_starpu_data_is_multiformat_handle(child_handle) &&
 			starpu_node_get_kind(child_handle->mf_node) != STARPU_CPU_RAM)
 		{

+ 5 - 1
src/util/malloc.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2009, 2010  Université de Bordeaux 1
+ * Copyright (C) 2009-2010, 2012  Université de Bordeaux 1
  * Copyright (C) 2010, 2011, 2012  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -82,6 +82,10 @@ int starpu_malloc(void **A, size_t dim)
 #ifdef STARPU_USE_CUDA
 		int push_res;
 
+#ifdef STARPU_DEVEL
+#warning TODO: CUDA4 is able to directly allocate from any thread without having to launch a task
+#endif
+
 		struct malloc_pinned_codelet_struct s =
 		{
 			.ptr = A,