Просмотр исходного кода

- move struct handle_entry back to data_interface.c as it may conflict with a similar struct src/core/topology.c

Olivier Aumage лет назад: 11
Родитель
Сommit
104d44742a
2 измененных файлов с 8 добавлено и 8 удалено
  1. 8 0
      src/datawizard/interfaces/data_interface.c
  2. 0 8
      src/datawizard/interfaces/data_interface.h

+ 8 - 0
src/datawizard/interfaces/data_interface.c

@@ -29,6 +29,14 @@
 #include <util/openmp_runtime_support.h>
 #include <util/openmp_runtime_support.h>
 #endif
 #endif
 
 
+/* Entry in the `registered_handles' hash table.  */
+struct handle_entry
+{
+	UT_hash_handle hh;
+	void *pointer;
+	starpu_data_handle_t handle;
+};
+
 /* Hash table mapping host pointers to data handles.  */
 /* Hash table mapping host pointers to data handles.  */
 static struct handle_entry *registered_handles;
 static struct handle_entry *registered_handles;
 static struct _starpu_spinlock    registered_handles_lock;
 static struct _starpu_spinlock    registered_handles_lock;

+ 0 - 8
src/datawizard/interfaces/data_interface.h

@@ -26,14 +26,6 @@
 #include <util/openmp_runtime_support.h>
 #include <util/openmp_runtime_support.h>
 #endif
 #endif
 
 
-/* Entry in the `registered_handles' hash table.  */
-struct handle_entry
-{
-	UT_hash_handle hh;
-	void *pointer;
-	starpu_data_handle_t handle;
-};
-
 /* Generic type representing an interface, for now it's only used before
 /* Generic type representing an interface, for now it's only used before
  * execution on message-passing devices but it can be useful in other cases.
  * execution on message-passing devices but it can be useful in other cases.
  */
  */