Bladeren bron

include: move starpu_node_kind definition and related functions from include/starpu_data.h to include/starpu_worker.h

Nathalie Furmento 12 jaren geleden
bovenliggende
commit
590962d672
2 gewijzigde bestanden met toevoegingen van 12 en 13 verwijderingen
  1. 0 13
      include/starpu_data.h
  2. 12 0
      include/starpu_worker.h

+ 0 - 13
include/starpu_data.h

@@ -97,19 +97,6 @@ int starpu_data_request_allocation(starpu_data_handle_t handle, unsigned node);
 int starpu_data_prefetch_on_node(starpu_data_handle_t handle, unsigned node, unsigned async);
 
 
-enum starpu_node_kind
-{
-	STARPU_UNUSED     = 0x00,
-	STARPU_CPU_RAM    = 0x01,
-	STARPU_CUDA_RAM   = 0x02,
-	STARPU_OPENCL_RAM = 0x03
-};
-
-unsigned starpu_worker_get_memory_node(unsigned workerid);
-unsigned starpu_memory_nodes_get_count(void);
-enum starpu_node_kind starpu_node_get_kind(unsigned node);
-
-
 /* It is possible to associate a mask to a piece of data (and its children) so
  * that when it is modified, it is automatically transfered into those memory
  * node. For instance a (1<<0) write-through mask means that the CUDA workers will

+ 12 - 0
include/starpu_worker.h

@@ -101,6 +101,18 @@ struct starpu_worker_collection
 	void (*init_iterator)(struct starpu_worker_collection *workers, struct starpu_sched_ctx_iterator *it);
 };
 
+enum starpu_node_kind
+{
+	STARPU_UNUSED     = 0x00,
+	STARPU_CPU_RAM    = 0x01,
+	STARPU_CUDA_RAM   = 0x02,
+	STARPU_OPENCL_RAM = 0x03
+};
+
+unsigned starpu_worker_get_memory_node(unsigned workerid);
+unsigned starpu_memory_nodes_get_count(void);
+enum starpu_node_kind starpu_node_get_kind(unsigned node);
+
 /* types of structures the worker collection can implement */
 #define STARPU_WORKER_LIST 0