瀏覽代碼

drop spurious changes

Corentin Salingue 12 年之前
父節點
當前提交
f6d2f6f7bd
共有 2 個文件被更改,包括 0 次插入14 次删除
  1. 0 12
      include/starpu_worker.h
  2. 0 2
      src/datawizard/memory_nodes.c

+ 0 - 12
include/starpu_worker.h

@@ -101,18 +101,6 @@ 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
 

+ 0 - 2
src/datawizard/memory_nodes.c

@@ -112,7 +112,6 @@ unsigned _starpu_memory_node_register(enum starpu_node_kind kind, int devid)
 	/* ATOMIC_ADD returns the new value ... */
 	node = STARPU_ATOMIC_ADD(&descr.nnodes, 1) - 1;
 	STARPU_ASSERT_MSG(node < STARPU_MAXNODES,"Too many nodes (%u)!", node);
-	STARPU_ASSERT_MSG(nnodes < STARPU_MAXNODES,"Too many nodes !");
 
 	descr.nodes[node] = kind;
 	_STARPU_TRACE_NEW_MEM_NODE(node);
@@ -123,7 +122,6 @@ unsigned _starpu_memory_node_register(enum starpu_node_kind kind, int devid)
 	descr.condition_count[node] = 0;
 
 	return node;
-
 }
 
 #ifdef STARPU_SIMGRID